GithubHelp home page GithubHelp logo

Comments (4)

Durss avatar Durss commented on June 3, 2024 1

There's no more /commands available since Twitch disabled them all (except for /me) last fabruary,.
You now need to use the API to delete a message:
https://dev.twitch.tv/docs/api/reference/#delete-chat-messages

Here is a migration guide for every /command
https://dev.twitch.tv/docs/irc/chat-commands/#migration-guide

from tmi.js.

iSlammedMyKindle avatar iSlammedMyKindle commented on June 3, 2024

Same issue over here ^ - we're working around this in our codebase by playing a game of telephone, which isn't ideal >.<

from tmi.js.

Durss avatar Durss commented on June 3, 2024

If that can be of any interest for anyone, I fixed this issue on this fork:
https://github.com/Durss/tmi.js

I generate a temporary ID, send it with the message in its "client-nonce" tag, wait for receiving a message ID, check if its client-nonce tag matches one of the sent messages, if so, I emit the new message event with the proper message ID.
This means that if twitch does not send back the real message ID, tmi.js will never emit the "message" event. Which may actually be a good idea as that may mean the message hasn't been sent.

(needs further testing to make sure it's ok tho)

from tmi.js.

vivimouret29 avatar vivimouret29 commented on June 3, 2024

This issue is still open, I shall hope it will be done soon
We still can't delete a message with the command /deletemessage

I forked the work's @Durss but it didn't resolved the problem
Even if the UUID message is well relatable, it isn't erased from the tchat

image

from tmi.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.