aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config/blacklist.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/config/blacklist.ts')
-rw-r--r--src/commands/config/blacklist.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/config/blacklist.ts b/src/commands/config/blacklist.ts
index 4706041..9047c41 100644
--- a/src/commands/config/blacklist.ts
+++ b/src/commands/config/blacklist.ts
@@ -77,9 +77,9 @@ export default class BlacklistCommand extends BushCommand {
if (global) {
if (action === 'toggle') {
- const blacklistedUsers = (await Global.findByPk(this.client.config.dev ? 'development' : 'production'))
+ const blacklistedUsers = (await Global.findByPk(this.client.config.environment))
.blacklistedUsers;
- const blacklistedChannels = (await Global.findByPk(this.client.config.dev ? 'development' : 'production'))
+ const blacklistedChannels = (await Global.findByPk(this.client.config.environment))
.blacklistedChannels;
action = blacklistedUsers.includes(targetID) || blacklistedChannels.includes(targetID) ? 'unblacklist' : 'blacklist';
}