From e1abcd5b243416d0bccc5de6b2848423aa8c221f Mon Sep 17 00:00:00 2001 From: Raphael Date: Sat, 15 Nov 2025 00:33:50 +0100 Subject: [PATCH] feat(commmands/rank): Update the buyer command's permission check to use the isOwner function --- src/commands/rank/buyer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/rank/buyer.ts b/src/commands/rank/buyer.ts index a6f5ffa..f262e67 100644 --- a/src/commands/rank/buyer.ts +++ b/src/commands/rank/buyer.ts @@ -4,6 +4,7 @@ import { prisma } from '@lib/prisma'; import { Guild as GuildPrisma, User as UserPrisma } from '@prisma/client'; import emoji from '../../../assets/emoji.json' assert { type: 'json' }; import { log } from '@lib/log'; +import { isBuyer } from '@lib/perm.js'; export default { data: new SlashCommandBuilder() @@ -182,7 +183,7 @@ export default { }); return; case 'list': - if (!userData.isBuyer) { + if (!await isBuyer(interaction.user.id)) { await interaction.reply({ content: `${emoji.answer.no} | This command is only for buyer`, flags: MessageFlags.Ephemeral,