Created serverPermissions and roles array

This commit is contained in:
hydrabolt
2015-10-03 19:04:22 +01:00
parent 20114c81a5
commit 6967f5e649
2 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
class Permission {
class ServerPermissions {
constructor(packedPermissions) {
@@ -28,7 +28,7 @@ class Permission {
this.voiceMuteMembers = getBit(22);
this.voiceDeafenMembers = getBit(23);
this.voiceMoveMembers = getBit(24);
this.voiceUseVoiceActivation = getBit(26);
this.voiceUseVoiceActivation = getBit(25);
}

View File

@@ -10,6 +10,8 @@ class Server {
this.icon = data.icon;
this.afkTimeout = data.afk_timeout;
this.afkChannelId = data.afk_channel_id;
this.roles = [];
if(!data.members){
data.members = [ client.user ];