From de672a341fedf075f192513f60e110ce543727da Mon Sep 17 00:00:00 2001 From: TheEssem Date: Sun, 26 Apr 2020 17:17:32 -0500 Subject: [PATCH] hotfix --- events/messageCreate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/messageCreate.js b/events/messageCreate.js index f1f5b44..8192ff0 100644 --- a/events/messageCreate.js +++ b/events/messageCreate.js @@ -30,7 +30,7 @@ module.exports = async (message) => { const command = args.shift().toLowerCase(); // don't run if message is in a disabled channel - if (guildDB.disabledChannels.includes(message.channel.id) && command != "channel") return; + if (guildDB.disabledChannels && guildDB.disabledChannels.includes(message.channel.id) && command != "channel") return; // check if command exists const cmd = collections.commands.get(command) || collections.commands.get(collections.aliases.get(command));