tmi.js version: 1.5.0
Hi, I want to know how I can make a command for only who is mod.
client.on('message', (channel, tags, message, self, username) => {
var chmods = client.mods(channel)
.then((modslist) => {
// data returns [moderators]
return modslist
tmi.js version: 1.5.0 Hi, I want to know how I can make a command for only who is mod. client.on('message', (channel, tags, message, self, username) => { var chmods = client.mods(channel) .then((modslist) => { // data returns [moderators] return modslist
}).catch((err) => { // }); if (chmods.includes(
${tags.username}
) == true) { if(command === 'rcolor') { [...] }})