fixes to whois perm calculations
parent
c20557a2ad
commit
2ad7d3f506
|
@ -87,8 +87,8 @@ export default class Whois extends Command {
|
|||
const bit = member.permission.allow;
|
||||
if (this.client.guilds.get(this.client.config.guildID).ownerID === member.id) serverAcknowledgements.push('Server Owner');
|
||||
if ((bit | 8) === bit) { permissions.push('Administrator'); serverAcknowledgements.push('Server Admin'); }
|
||||
if ((bit | 20) === bit) { permissions.push('Manage Server'); serverAcknowledgements.push('Server Manager'); }
|
||||
if ((bit | 10) === bit) permissions.push('Manage Channels');
|
||||
if ((bit | 32) === bit) { permissions.push('Manage Server'); serverAcknowledgements.push('Server Manager'); }
|
||||
if ((bit | 16) === bit) permissions.push('Manage Channels');
|
||||
if ((bit | 268435456) === bit) permissions.push('Manage Roles');
|
||||
if ((bit | 8192) === bit) { permissions.push('Manage Messages'); serverAcknowledgements.push('Server Moderator'); }
|
||||
if ((bit | 134217728) === bit) permissions.push('Manage Nicknames');
|
||||
|
|
Loading…
Reference in New Issue