mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 15:07:26 +02:00
corrige Buyer permission
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user