1

I want to delete a single message on twitch using tmi.js without using timeout on the sender.

JMP
  • 4,417
  • 17
  • 30
  • 41
Erix
  • 11
  • 2

2 Answers2

1

You can delete a single message using tmi.js

client.deletemessage(TWITCH_CHANNEL, messageObject.id);

See TMI.js #deleteMessage

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.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
stirious
  • 24
  • 5