tmijs / tmi.js

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
https://tmijs.com
MIT License
1.54k stars 216 forks source link

How to get the messageUUID #423

Closed JusteLoneWolf closed 3 years ago

JusteLoneWolf commented 3 years ago

Actual behaviour: hello, How to get a messageUUID with message event ?

Expected behaviour: Get the messageUUID for delete this message

AlcaDesign commented 3 years ago

It's the id tag in the tags.

client.on('message', (channel, tags, message, self) => {
    if(self) return;
    client.deletemessage(channel, tags.id);
});

The tmi.js issues are not for programming questions. Please use MDN, StackOverflow, the "Twitch API" community Discord (#general-javascript), or the official TwitchDev Discord (#javascript-and-node) for general JavaScript support.