mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Added permission fields missing in server permissions
This commit is contained in:
@@ -8,12 +8,21 @@ class ServerPermissions {
|
||||
return ((self.packed >>> x) & 1) === 1;
|
||||
}
|
||||
|
||||
this.managed = data.managed;
|
||||
this.position = data.position || 1;
|
||||
this.hoist = data.hoist;
|
||||
this.color = data.color;
|
||||
this.packed = data.permissions;
|
||||
this.name = data.name;
|
||||
this.id = data.id;
|
||||
|
||||
}
|
||||
|
||||
get colour(){
|
||||
// screw the american spelling
|
||||
return this.color;
|
||||
}
|
||||
|
||||
serialise() {
|
||||
return {
|
||||
createInstantInvite : this.createInstantInvite,
|
||||
|
||||
Reference in New Issue
Block a user