I want to delete a single message on twitch using tmi.js
without using timeout on the sender.
Asked
Active
Viewed 1,852 times
2 Answers
1
You can delete a single message using tmi.js
client.deletemessage(TWITCH_CHANNEL, messageObject.id);

Poopy Doop
- 344
- 4
- 13
-3
You're not able to remove a single message in chat without timing them out when using tmi.js extension, you can only clear the chat fully using client.clear("channel");
or you can timeout a person for one second to get rid of all the messages specifically using client.timeout("channel", "username", 1, "reason");
I'd recommend reading the documentation for the tmi.js extension at https://github.com/tmijs/docs which will give you all the details on commands and configuration.