From a51dc607be54e600248c8c3c86f9881470ff4158 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 29 Aug 2021 18:30:04 -0400 Subject: level image, fixes, revamped role command (still broken), continued working on settings command --- src/commands/dev/superUser.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/commands/dev') diff --git a/src/commands/dev/superUser.ts b/src/commands/dev/superUser.ts index 957e2b7..1b2fd7c 100644 --- a/src/commands/dev/superUser.ts +++ b/src/commands/dev/superUser.ts @@ -1,4 +1,5 @@ import { BushCommand, BushMessage, BushSlashMessage, Global } from '@lib'; +import { ArgumentOptions, Flag } from 'discord-akairo'; import { User } from 'discord.js'; export default class SuperUserCommand extends BushCommand { @@ -15,14 +16,14 @@ export default class SuperUserCommand extends BushCommand { ownerOnly: true }); } - *args(): unknown { + *args(): IterableIterator { const action = yield { id: 'action', type: ['add', 'remove'], prompt: { start: 'Would you like to `add` or `remove` a user from the superuser list?', retry: '{error} Choose if you would like to `add` or `remove` a user.', - required: true + optional: false } }; const user = yield { @@ -30,9 +31,9 @@ export default class SuperUserCommand extends BushCommand { type: 'user', match: 'restContent', prompt: { - start: `Who would you like to ${action || 'add/remove'} from the superuser list?`, - retry: `Choose a valid user to ${action || 'add/remove'} from the superuser list.`, - required: true + start: `Who would you like to ${action ?? 'add/remove'} from the superuser list?`, + retry: `Choose a valid user to ${action ?? 'add/remove'} from the superuser list.`, + optional: false } }; return { action, user }; -- cgit