diff options
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/config/blacklist.ts | 6 | ||||
-rw-r--r-- | src/commands/config/disable.ts | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/commands/config/blacklist.ts b/src/commands/config/blacklist.ts index 9047c41..8e5d703 100644 --- a/src/commands/config/blacklist.ts +++ b/src/commands/config/blacklist.ts @@ -77,10 +77,8 @@ export default class BlacklistCommand extends BushCommand { if (global) { if (action === 'toggle') { - const blacklistedUsers = (await Global.findByPk(this.client.config.environment)) - .blacklistedUsers; - const blacklistedChannels = (await Global.findByPk(this.client.config.environment)) - .blacklistedChannels; + const blacklistedUsers = (await Global.findByPk(this.client.config.environment)).blacklistedUsers; + const blacklistedChannels = (await Global.findByPk(this.client.config.environment)).blacklistedChannels; action = blacklistedUsers.includes(targetID) || blacklistedChannels.includes(targetID) ? 'unblacklist' : 'blacklist'; } const success = await this.client.util diff --git a/src/commands/config/disable.ts b/src/commands/config/disable.ts index f6caf88..ed9bf7d 100644 --- a/src/commands/config/disable.ts +++ b/src/commands/config/disable.ts @@ -71,8 +71,7 @@ export default class DisableCommand extends BushCommand { if (global) { if (action === 'toggle') { - const disabledCommands = (await Global.findByPk(this.client.config.environment)) - .disabledCommands; + const disabledCommands = (await Global.findByPk(this.client.config.environment)).disabledCommands; action = disabledCommands.includes(commandID) ? 'disable' : 'enable'; } const success = await this.client.util |