Comments (4)
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.
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.
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.
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
from tmi.js.
Related Issues (20)
- Emoticons dont work anymroe for long time. Fix it please? HOT 1
- Connection duplicated after disconnect and connect HOT 6
- My account was BANNED because of tmi js HOT 1
- add Hype Train event and channel point event PLEASEEE HOT 1
- Can't connect to server with OAuth token authorization HOT 2
- Cannot read properties of undefined (reading 'startsWith') in Commands.js of tmi.js HOT 1
- Type errors
- Create and get poll results HOT 1
- Client auto-joins channels after reconnect
- help
- client.on('redeem', ....) doesn't listen for reward redemption without viewer message HOT 1
- How do we get the sub tier? HOT 5
- Did number of subs get removed from giftsub?
- Properties with type T | undefined can be null
- Missing userstate in type definitions of ban and timeout events HOT 1
- Unrecognized command: /ban HOT 7
- In `client.on('redeem',......` , Is there a way to obtain the message was sent in that reward? HOT 1
- Missing Component HOT 1
- periodic error log HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmi.js.