fixes to whois perm calculations
parent
5ffc3a5eb7
commit
d8c1e87b9c
|
@ -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