aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev/superUser.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-16 16:09:38 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-16 16:09:38 -0400
commitd431ad00754f3f250103deedea495b9bcee73fc0 (patch)
treefcc6af12a544338b913c2eb2c07f1c620af74e5a /src/commands/dev/superUser.ts
parent59604d7455e144333eec4160857a29fafc5f39ee (diff)
downloadtanzanite-d431ad00754f3f250103deedea495b9bcee73fc0.tar.gz
tanzanite-d431ad00754f3f250103deedea495b9bcee73fc0.tar.bz2
tanzanite-d431ad00754f3f250103deedea495b9bcee73fc0.zip
super secret
Diffstat (limited to 'src/commands/dev/superUser.ts')
-rw-r--r--src/commands/dev/superUser.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/commands/dev/superUser.ts b/src/commands/dev/superUser.ts
index 22fa53f..5178684 100644
--- a/src/commands/dev/superUser.ts
+++ b/src/commands/dev/superUser.ts
@@ -44,6 +44,11 @@ export default class SuperUserCommand extends BushCommand {
if (!message.author.isOwner())
return await message.util.reply(`${util.emojis.error} Only my developers can run this command.`);
+ if (!args.user?.id)
+ return await message.util.reply(
+ `${util.emojis.error} I fucked up here is args ${await util.inspectCleanRedactCodeblock(args, 'ts')}`
+ );
+
const superUsers = (await Global.findByPk(client.config.environment)).superUsers;
let success;
if (args.action === 'add') {