diff options
Diffstat (limited to 'src/commands/leveling/setLevel.ts')
-rw-r--r-- | src/commands/leveling/setLevel.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/commands/leveling/setLevel.ts b/src/commands/leveling/setLevel.ts index 184ee1b..29f36e0 100644 --- a/src/commands/leveling/setLevel.ts +++ b/src/commands/leveling/setLevel.ts @@ -1,4 +1,5 @@ import { AllowedMentions, BushCommand, Level, type ArgType, type BushMessage, type BushSlashMessage } from '#lib'; +import { ApplicationCommandOptionType, Permissions } from 'discord.js'; export default class SetLevelCommand extends BushCommand { public constructor() { @@ -15,7 +16,7 @@ export default class SetLevelCommand extends BushCommand { type: 'user', prompt: 'What user would you like to change the level of?', retry: '{error} Choose a valid user to change the level of.', - slashType: 'USER' + slashType: ApplicationCommandOptionType.User }, { id: 'level', @@ -23,13 +24,13 @@ export default class SetLevelCommand extends BushCommand { type: 'integer', prompt: 'What level would you like to set the user to?', retry: '{error} Choose a valid level to set the user to.', - slashType: 'INTEGER' + slashType: ApplicationCommandOptionType.Integer } ], slash: true, channel: 'guild', clientPermissions: (m) => util.clientSendAndPermCheck(m), - userPermissions: ['ADMINISTRATOR'] + userPermissions: [Permissions.FLAGS.ADMINISTRATOR] }); } |