mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
Potential bug fix?
This commit is contained in:
@@ -954,10 +954,6 @@ class Client {
|
||||
var data;
|
||||
|
||||
if( role instanceof ServerPermissions || role.type === "role" ){
|
||||
for(var key in updatedStuff){
|
||||
role[key] = updatedStuff[key];
|
||||
}
|
||||
|
||||
data = ad(updatedStuff);
|
||||
data.id = role.id;
|
||||
data.type = "role";
|
||||
|
||||
@@ -25,7 +25,8 @@ class Member extends User{
|
||||
get evalPerms(){
|
||||
var basePerms = this.roles, //cache roles as it can be slightly expensive
|
||||
basePerm = basePerms[0].packed;
|
||||
|
||||
|
||||
basePerms = basePerms || [];
|
||||
for(var perm of basePerms){
|
||||
basePerm = basePerm | perm.packed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user