As mentioned in the title, my variable "isModUp" is "declared but its value is never read"
client.on("message", (channel, tags, message, self) => {
if(self) return;
const badges = tags.badges || {};
const isBroadcaster = badges.broadcaster;
const isMod = badges.moderator;
const isModUp = isMod || isBroadcaster
});
I have copied some code off GitHub and for some reason this issue has never happened to anyone else. I use this variable here:
if(message.isModUp ("!gta.on")){
client.say(channelName, "!title [EN/PC] GTA V W/VIEWERS! | !sc to join | !discord | !youtube | !socials| !nerdordie| #RazerStreamer")
client.say(channelName, "!game Grand Theft Auto V")
}
if(message.isModUp ("!warface.on")){
client.say(channelName, "!title [EN/PC] Playing Warface by myself! | !discord | !youtube | !socials| !nerdordie| #RazerStreamer #AMA #Solo")
client.say(channelName, "!game Warface")
}
How do I fix this?