hotfix
This commit is contained in:
parent
f3627a659b
commit
de672a341f
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue