diff options
| author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-29 18:30:04 -0400 |
|---|---|---|
| committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-29 18:30:04 -0400 |
| commit | a51dc607be54e600248c8c3c86f9881470ff4158 (patch) | |
| tree | 6a3c6f5132fca493639790fb68b3368bc700990b /src/commands/dev | |
| parent | 0d71ac0234f7e71d60ae727a9f1db9ad66a47bde (diff) | |
| download | tanzanite-a51dc607be54e600248c8c3c86f9881470ff4158.tar.gz tanzanite-a51dc607be54e600248c8c3c86f9881470ff4158.tar.bz2 tanzanite-a51dc607be54e600248c8c3c86f9881470ff4158.zip | |
level image, fixes, revamped role command (still broken), continued working on settings command
Diffstat (limited to 'src/commands/dev')
| -rw-r--r-- | src/commands/dev/superUser.ts | 11 |
1 files changed, 6 insertions, 5 deletions
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<ArgumentOptions | Flag> { 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 }; |
