diff --git a/bot/bot.js b/bot/bot.js index 0f29c0d..b6bd0c1 100644 --- a/bot/bot.js +++ b/bot/bot.js @@ -170,7 +170,7 @@ function checkMessageForCommand(msg, isEdit) { if (msg.author === bot.user) { return; } - if (msg.author !== bot.user && msg.MessageMentions.equals(bot.user)) { + if (msg.author !== bot.user && msg.mentions.has(bot.user)) { msg.channel.send('yes?'); //using a mention here can lead to looping } else { }