needs a rewrite for eris stuff
This commit is contained in:
parent
e2fba99044
commit
37dcc8605c
1 changed files with 6 additions and 6 deletions
|
@ -75,16 +75,16 @@ class Helpers {
|
||||||
return role;
|
return role;
|
||||||
}
|
}
|
||||||
|
|
||||||
checkPermissions (command, message, member) {
|
checkPermissions (command, message) {
|
||||||
const missingPerms = [];
|
const missingPerms = [];
|
||||||
|
|
||||||
if (member.user.bot) {
|
if (message.member.bot) {
|
||||||
command.conf.botPerms.forEach(p => {
|
command.botPerms.forEach(p => {
|
||||||
if (!message.channel.permissionsFor(member).has(p)) missingPerms.push(p);
|
if (!message.channel.permissionsOf(this.client.user.id).has(p)) missingPerms.push(p);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
command.conf.userPerms.forEach(p => {
|
command.userPerms.forEach(p => {
|
||||||
if (!message.channel.permissionsFor(member).has(p)) missingPerms.push(p);
|
if (!message.channel.permissionsOf(message.author.id).has(p)) missingPerms.push(p);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue