diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-25 23:47:40 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-25 23:47:40 -0500 |
commit | 840cca672d681c36f980a06fb79a4e2c01bd69ac (patch) | |
tree | 82c40a7fe3e1a2bc6367fed6e3d26b6c7dceb256 /src/commands/dev/superUser.ts | |
parent | 6ca99336a416389dd2b0b8c4c6a7b2ef87bc9fef (diff) | |
download | tanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.tar.gz tanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.tar.bz2 tanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.zip |
I love breaking changes!!!!
Diffstat (limited to 'src/commands/dev/superUser.ts')
-rw-r--r-- | src/commands/dev/superUser.ts | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/commands/dev/superUser.ts b/src/commands/dev/superUser.ts index f937ad4..9cdac4a 100644 --- a/src/commands/dev/superUser.ts +++ b/src/commands/dev/superUser.ts @@ -1,5 +1,6 @@ import { BushCommand, type ArgType, type BushMessage } from '#lib'; -import { type ArgumentOptions, type Flag } from 'discord-akairo'; +import { ArgumentGeneratorReturn } from 'discord-akairo'; +import { ArgumentTypeCasterReturn } from 'discord-akairo/dist/src/struct/commands/arguments/Argument'; export default class SuperUserCommand extends BushCommand { public constructor() { @@ -30,8 +31,8 @@ export default class SuperUserCommand extends BushCommand { }); } - override *args(): IterableIterator<ArgumentOptions | Flag> { - const action = yield { + override *args(): ArgumentGeneratorReturn { + const action: 'add' | 'remove' = yield { id: 'action', type: ['add', 'remove'], prompt: { @@ -40,7 +41,8 @@ export default class SuperUserCommand extends BushCommand { optional: false } }; - const user = yield { + + const user: ArgumentTypeCasterReturn<'user'> = yield { id: 'user', type: 'user', match: 'restContent', @@ -50,6 +52,7 @@ export default class SuperUserCommand extends BushCommand { optional: false } }; + return { action, user }; } |