aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev/superUser.ts
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/dev/superUser.ts
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/dev/superUser.ts')
-rw-r--r--src/commands/dev/superUser.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/dev/superUser.ts b/src/commands/dev/superUser.ts
index 83623df..e06d064 100644
--- a/src/commands/dev/superUser.ts
+++ b/src/commands/dev/superUser.ts
@@ -43,7 +43,7 @@ export default class SuperUserCommand extends BushCommand {
if (!message.author.isOwner())
return await message.util.reply(`${this.client.util.emojis.error} Only my developers can run this command.`);
- const superUsers = (await Global.findByPk(this.client.config.dev ? 'development' : 'production')).superUsers;
+ const superUsers = (await Global.findByPk(this.client.config.environment)).superUsers;
let success;
if (args.action === 'add') {
if (superUsers.includes(args.user.id)) {