mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
Created serverPermissions and roles array
This commit is contained in:
parent
20114c81a5
commit
6967f5e649
2 changed files with 4 additions and 2 deletions
|
|
@ -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 ];
|
||||
|
|
|
|||
Loading…
Reference in a new issue