mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Created serverPermissions and roles array
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
@@ -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 ];
|
||||
|
||||
Reference in New Issue
Block a user