From 3e2cbd7ab51554ba99d778f21df63cccff46656f Mon Sep 17 00:00:00 2001 From: Ralph Date: Mon, 5 Apr 2021 11:47:48 -0400 Subject: [PATCH] Update bot.js --- bot/bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { }