corrige Buyer permission

This commit is contained in:
Tutur33
2024-02-15 23:47:35 +01:00
parent f3246aa74d
commit 5d5a0a508b
+3 -2
View File
@@ -72,8 +72,9 @@ module.exports = (client) => {
if (command) {
const permissionLevel = await getPermissionLevel(message.member, client, guildId);
console.log(permissionLevel, permissions[command.name])
if (permissionLevel >= permissions[command.name]) {
if (permissionLevel === 11) {
command.execute(message, args, client);
} else if (permissionLevel >= permissions[command.name]) {
command.execute(message, args, client);
} else {
return message.reply("Vous n'avez pas accès à cette commande.");