This commit is contained in:
Dragon Fire
2020-04-11 11:29:40 -04:00
parent dfe8c0a5e0
commit fe3a92a76e
13 changed files with 18 additions and 17 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ module.exports = class AutoReplyCommand extends Command {
}
run(msg, args, fromPattern) {
if (this.client.botListGuilds.includes(msg.guild.id)) return null;
if (msg.guild && this.client.botListGuilds.includes(msg.guild.id)) return null;
return this.reply ? msg.reply(this.generateText(fromPattern)) : msg.say(this.generateText(fromPattern));
}