Not sure What I am doing wrong here. I am trying to get my bot to only send this message if the user starts typing in the defined channel. I don't get errors the bot just doesn't send a message. Help Please!
bot.on("typingStart", (channel, user) => {
const bot_channel = "812180709401247658"
if (channel.id = bot_channel.id) {
message.send('wrong channel');
}
});
I have also tried:
bot.on("typingStart", (message , channel) => {
const bot_channel = "812180709401247658"
if (channel.id === bot_channel.id) {
message.send('wrong channel');
}
});