Don't DM in auto-reply commands

This commit is contained in:
Dragon Fire
2020-06-11 22:29:36 -04:00
parent 04f49ed095
commit b75187150d
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -9,6 +9,7 @@ module.exports = class AutoReplyCommand extends Command {
}
run(msg, args, fromPattern) {
if (msg.guild && !msg.channel.permissionsFor(this.client.user).has('SEND_MESSAGES')) return null;
return this.reply ? msg.reply(this.generateText(fromPattern)) : msg.say(this.generateText(fromPattern));
}