mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-22 18:19:25 +02:00
ajout de colors + de client.config.owners (pour bypass les perm)
This commit is contained in:
@@ -15,8 +15,12 @@ module.exports = {
|
||||
const command = client.commands.get(commandName);
|
||||
if (!command) return;
|
||||
|
||||
const permissionLevel = 11//await getPermissionLevel(message.member, message.guild);
|
||||
if (permissionLevel < command.permission) return message.reply("Vous n'avez pas la permission d'utiliser cette commande.");
|
||||
const permissionLevel = 1 //await getPermissionLevel(message.member, message.guild);
|
||||
if (permissionLevel < command.permission) {
|
||||
if (!client.config.owners.includes(message.author.id)) {
|
||||
return message.reply("Vous n'avez pas la permission d'utiliser cette commande.");
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
command.execute(message, args, client);
|
||||
|
||||
Reference in New Issue
Block a user