diff options
Diffstat (limited to 'src/commands/moderation/timeout.ts')
-rw-r--r-- | src/commands/moderation/timeout.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/moderation/timeout.ts b/src/commands/moderation/timeout.ts index 73b9d50..32fcf76 100644 --- a/src/commands/moderation/timeout.ts +++ b/src/commands/moderation/timeout.ts @@ -8,7 +8,7 @@ import { type BushSlashMessage } from '#lib'; import assert from 'assert'; -import { ApplicationCommandOptionType, Permissions } from 'discord.js'; +import { ApplicationCommandOptionType, PermissionFlagsBits } from 'discord.js'; export default class TimeoutCommand extends BushCommand { public constructor() { @@ -49,8 +49,8 @@ export default class TimeoutCommand extends BushCommand { ], slash: true, channel: 'guild', - clientPermissions: (m) => util.clientSendAndPermCheck(m, [Permissions.FLAGS.MODERATE_MEMBERS]), - userPermissions: [Permissions.FLAGS.MODERATE_MEMBERS] + clientPermissions: (m) => util.clientSendAndPermCheck(m, [PermissionFlagsBits.ModerateMembers]), + userPermissions: [PermissionFlagsBits.ModerateMembers] }); } |