This commit is contained in:
TheEssem 2020-04-26 17:17:32 -05:00
parent f3627a659b
commit de672a341f
1 changed files with 1 additions and 1 deletions

View File

@ -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));