aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-17 14:11:37 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-17 14:11:37 -0400
commitda70ed6f4ad82c58adf7dc6120aa8b6b255238e9 (patch)
treea1d80d6d89ae249893c300234d034934a55ea0b4 /src/commands/config
parentd1724227abfb8f0fcd9e573f7e9772cf0be8257a (diff)
downloadtanzanite-da70ed6f4ad82c58adf7dc6120aa8b6b255238e9.tar.gz
tanzanite-da70ed6f4ad82c58adf7dc6120aa8b6b255238e9.tar.bz2
tanzanite-da70ed6f4ad82c58adf7dc6120aa8b6b255238e9.zip
rewrote config for absolutly no reason :troll:
Diffstat (limited to 'src/commands/config')
-rw-r--r--src/commands/config/blacklist.ts4
-rw-r--r--src/commands/config/disable.ts2
2 files changed, 3 insertions, 3 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';
}
diff --git a/src/commands/config/disable.ts b/src/commands/config/disable.ts
index 007cdb1..f6caf88 100644
--- a/src/commands/config/disable.ts
+++ b/src/commands/config/disable.ts
@@ -71,7 +71,7 @@ export default class DisableCommand extends BushCommand {
if (global) {
if (action === 'toggle') {
- const disabledCommands = (await Global.findByPk(this.client.config.dev ? 'development' : 'production'))
+ const disabledCommands = (await Global.findByPk(this.client.config.environment))
.disabledCommands;
action = disabledCommands.includes(commandID) ? 'disable' : 'enable';
}