Update bot.js

This commit is contained in:
Ralph 2021-04-05 11:47:48 -04:00 committed by GitHub
parent 7baefbf774
commit 3e2cbd7ab5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {
}