From a3f8d3884a1deca5eccfb6d990e2a7b42fbbe08a Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 23 Jan 2022 18:13:05 -0500 Subject: fix discord.js breaking changes, some other stuff --- src/commands/moderation/hideCase.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/commands/moderation/hideCase.ts') diff --git a/src/commands/moderation/hideCase.ts b/src/commands/moderation/hideCase.ts index e12d8c8..2c71119 100644 --- a/src/commands/moderation/hideCase.ts +++ b/src/commands/moderation/hideCase.ts @@ -1,4 +1,5 @@ import { BushCommand, ModLog, type BushMessage, type BushSlashMessage } from '#lib'; +import { ApplicationCommandOptionType, Permissions } from 'discord.js'; export default class HideCaseCommand extends BushCommand { public constructor() { @@ -15,12 +16,12 @@ export default class HideCaseCommand extends BushCommand { type: 'string', prompt: 'What modlog case would you like to hide?', retry: '{error} Choose a valid case id.', - slashType: 'STRING' + slashType: ApplicationCommandOptionType.String } ], slash: true, clientPermissions: (m) => util.clientSendAndPermCheck(m), - userPermissions: (m) => util.userGuildPermCheck(m, ['MANAGE_MESSAGES']), + userPermissions: (m) => util.userGuildPermCheck(m, [Permissions.FLAGS.MANAGE_MESSAGES]), channel: 'guild' }); } -- cgit