diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-11-28 09:27:41 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-11-28 09:27:41 -0500 |
commit | 453683b57b8ff013ff25e2aaa4aa1d2e047edcb7 (patch) | |
tree | 8b98d2f30dbb6a8448602446cfacf9091667cc33 /src/commands/leveling/setXp.ts | |
parent | de4c3dcaf172804d34ae708be1ed3e75af42f4d5 (diff) | |
download | tanzanite-453683b57b8ff013ff25e2aaa4aa1d2e047edcb7.tar.gz tanzanite-453683b57b8ff013ff25e2aaa4aa1d2e047edcb7.tar.bz2 tanzanite-453683b57b8ff013ff25e2aaa4aa1d2e047edcb7.zip |
a few small changes
Diffstat (limited to 'src/commands/leveling/setXp.ts')
-rw-r--r-- | src/commands/leveling/setXp.ts | 40 |
1 files changed, 11 insertions, 29 deletions
diff --git a/src/commands/leveling/setXp.ts b/src/commands/leveling/setXp.ts index 2f2a6fa..68be528 100644 --- a/src/commands/leveling/setXp.ts +++ b/src/commands/leveling/setXp.ts @@ -6,44 +6,26 @@ export default class SetXpCommand extends BushCommand { super('setXp', { aliases: ['set-xp'], category: 'leveling', - description: { - content: 'Sets the xp of a user', - usage: ['set-xp <user> <xp>'], - examples: ['set-xp @Moulberry 69k'] //nice - }, + description: 'Sets the xp of a user', + usage: ['set-xp <user> <xp>'], + examples: ['set-xp @Moulberry 69k'], //nice args: [ { id: 'user', + description: 'The user to set the xp of.', type: 'user', - prompt: { - start: 'What user would you like to change the xp of?', - retry: '{error} Choose a valid user to change the xp of.', - required: true - } + prompt: 'What user would you like to change the xp of?', + retry: '{error} Choose a valid user to change the xp of.', + slashType: 'USER' }, { id: 'xp', + description: 'The xp to set the user to.', type: 'abbreviatedNumber', match: 'restContent', - prompt: { - start: 'How much xp should the user have?', - retry: "{error} Choose a valid number to set the user's xp to.", - required: true - } - } - ], - slashOptions: [ - { - name: 'user', - description: 'What user would you like to change the xp of?', - type: 'USER', - required: true - }, - { - name: 'xp', - description: 'How much xp should the user have?', - type: 'INTEGER', - required: true + prompt: 'How much xp should the user have?', + retry: "{error} Choose a valid number to set the user's xp to.", + slashType: 'INTEGER' } ], slash: true, |