aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config/disable.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/config/disable.ts')
-rw-r--r--src/commands/config/disable.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commands/config/disable.ts b/src/commands/config/disable.ts
index d59ff55..a7ebfa2 100644
--- a/src/commands/config/disable.ts
+++ b/src/commands/config/disable.ts
@@ -1,7 +1,8 @@
import { AllowedMentions, BushCommand, type ArgType, type BushMessage, type BushSlashMessage } from '#lib';
import assert from 'assert';
-import { ApplicationCommandOptionType, AutocompleteInteraction, Permissions } from 'discord.js';
+import { ApplicationCommandOptionType, AutocompleteInteraction, PermissionFlagsBits } from 'discord.js';
import Fuse from 'fuse.js';
+
assert(Fuse);
export default class DisableCommand extends BushCommand {
@@ -48,7 +49,7 @@ export default class DisableCommand extends BushCommand {
slash: true,
channel: 'guild',
clientPermissions: (m) => util.clientSendAndPermCheck(m),
- userPermissions: [Permissions.FLAGS.MANAGE_GUILD]
+ userPermissions: [PermissionFlagsBits.ManageGuild]
});
}