aboutsummaryrefslogtreecommitdiff
path: root/src/commands/leveling/leaderboard.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/leveling/leaderboard.ts')
-rw-r--r--src/commands/leveling/leaderboard.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/leveling/leaderboard.ts b/src/commands/leveling/leaderboard.ts
index 3a00036..eb8b90c 100644
--- a/src/commands/leveling/leaderboard.ts
+++ b/src/commands/leveling/leaderboard.ts
@@ -1,5 +1,5 @@
import { BushCommand, ButtonPaginator, Level, type ArgType, type BushMessage, type BushSlashMessage } from '#lib';
-import { ApplicationCommandOptionType, Embed, Permissions } from 'discord.js';
+import { ApplicationCommandOptionType, Embed, PermissionFlagsBits } from 'discord.js';
export default class LeaderboardCommand extends BushCommand {
public constructor() {
@@ -32,7 +32,7 @@ export default class LeaderboardCommand extends BushCommand {
if (!(await message.guild.hasFeature('leveling')))
return await message.util.reply(
`${util.emojis.error} This command can only be run in servers with the leveling feature enabled.${
- message.member?.permissions.has(Permissions.FLAGS.MANAGE_GUILD)
+ message.member?.permissions.has(PermissionFlagsBits.ManageGuild)
? ` You can toggle features using the \`${util.prefix(message)}features\` command.`
: ''
}`