mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-04 15:56:42 +02:00
correction quel que probleme , wl system , owner system + permssion system
This commit is contained in:
@@ -53,6 +53,7 @@ module.exports = (client) => {
|
||||
if (owners[member.id]) {
|
||||
return 10;
|
||||
}
|
||||
|
||||
let highestPermission = 0;
|
||||
for (let i = 1; i <= 9; i++) {
|
||||
const roleIds = data.permissions && data.permissions[guildId] && data.permissions[guildId].p && data.permissions[guildId].p[i];
|
||||
@@ -117,7 +118,7 @@ module.exports = (client) => {
|
||||
}
|
||||
if (command) {
|
||||
const permissionLevel = await getPermissionLevel(message.member, client);
|
||||
|
||||
console.log(permissionLevel + " : " +permissions[command.name] + " : " + command.name)
|
||||
try {
|
||||
if (permissionLevel === 11) {
|
||||
command.execute(message, args, client);
|
||||
|
||||
Reference in New Issue
Block a user