diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-17 14:11:37 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-17 14:11:37 -0400 |
commit | da70ed6f4ad82c58adf7dc6120aa8b6b255238e9 (patch) | |
tree | a1d80d6d89ae249893c300234d034934a55ea0b4 /src/commands/dev/superUser.ts | |
parent | d1724227abfb8f0fcd9e573f7e9772cf0be8257a (diff) | |
download | tanzanite-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.ts | 2 |
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)) { |