mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Fixed getBit
will now resolve all permissions to true if it has manage role
This commit is contained in:
@@ -97,11 +97,21 @@ class ServerPermissions {
|
||||
set voiceUseVoiceActivation(val){this.setBit(25, val);}
|
||||
|
||||
getBit(x) {
|
||||
if( ((this.packed >>> 3) & 1) === 1 ){
|
||||
return true;
|
||||
}
|
||||
return ((this.packed >>> x) & 1) === 1;
|
||||
}
|
||||
|
||||
setBit(){
|
||||
//dummy function for now
|
||||
setBit(location, value){
|
||||
|
||||
if(value){
|
||||
// allow that permission
|
||||
|
||||
}else{
|
||||
// not allowed
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
toString(){
|
||||
|
||||
Reference in New Issue
Block a user