mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-23 18:04:41 +02:00
corrige Buyer permission
This commit is contained in:
@@ -72,8 +72,9 @@ module.exports = (client) => {
|
|||||||
if (command) {
|
if (command) {
|
||||||
const permissionLevel = await getPermissionLevel(message.member, client, guildId);
|
const permissionLevel = await getPermissionLevel(message.member, client, guildId);
|
||||||
|
|
||||||
console.log(permissionLevel, permissions[command.name])
|
if (permissionLevel === 11) {
|
||||||
if (permissionLevel >= permissions[command.name]) {
|
command.execute(message, args, client);
|
||||||
|
} else if (permissionLevel >= permissions[command.name]) {
|
||||||
command.execute(message, args, client);
|
command.execute(message, args, client);
|
||||||
} else {
|
} else {
|
||||||
return message.reply("Vous n'avez pas accès à cette commande.");
|
return message.reply("Vous n'avez pas accès à cette commande.");
|
||||||
|
|||||||
Reference in New Issue
Block a user