Permissions
Permissions ⇐ Bitfield
Section titled “Permissions ⇐ Bitfield”Class representing a Discord permission bitfield.
Kind: global class
Extends: Bitfield
- Permissions ⇐
Bitfield- new Permissions(…bit)
- .Default :
bigint - .All ⇒
- .Flags :
enum
new Permissions(…bit)
Section titled “new Permissions(…bit)”Create a new Permissions bitfield
| Param | Type | Description |
|---|---|---|
| …bit | bigint | Bit positions to enable |
Permissions.Default : bigint
Section titled “Permissions.Default : bigint”The default Permissions bitfield value
Kind: static property of Permissions
Read only: true
Permissions.All ⇒
Section titled “Permissions.All ⇒”Bitfield representing all permissions
Kind: static property of Permissions
Returns: The calculated value of Intents.All.
| Param | Type | Description |
|---|---|---|
| All | bigint | All bit value. |
Permissions.Flags : enum
Section titled “Permissions.Flags : enum”Object containing bit flags for Permissions
Kind: static enum of Permissions
Read only: true
Properties
| Name | Type | Default |
|---|---|---|
| Create_Instant_Invite | bigint | |
| Kick_Members | bigint | |
| Ban_Members | bigint | |
| Administrator | bigint | |
| Manage_Channels | bigint | |
| Manage_Guild | bigint | |
| Add_Reactions | bigint | |
| View_Audit_Log | bigint | |
| Priority_Speakers | bigint | |
| Stream | bigint | |
| View_Channel | bigint | |
| Send_Messages | bigint | |
| Send_TTS_Messages | bigint | |
| Manage_Messages | bigint | |
| Embed_Links | bigint | |
| Attach_Files | bigint | |
| Read_Message_History | bigint | |
| Mention_Everyone | bigint | |
| Use_External_Emojis | bigint | |
| View_Guild_Analitics | bigint | |
| Connect | bigint | |
| Speak | bigint | |
| Mute_Members | bigint | |
| Deafen_Members | bigint | |
| Move_Members | bigint | |
| Use_Vad | bigint | |
| Change_Nickname | bigint | |
| Manage_Nicknames | bigint | |
| Manage_Roles | bigint | |
| Manage_Webhooks | bigint | |
| Manage_Emojis_And_Stickers | bigint | |
| Use_Applications_Commands | bigint | |
| Request_To_Speak | bigint | |
| Manage_Events | bigint | |
| Manage_Threads | bigint | |
| Create_Public_Threads | bigint | |
| Create_Private_Threads | bigint | |
| Use_External_Stickers | bigint | |
| Send_Messages_In_Threads | bigint | |
| Use_Embedded_Activities | bigint | |
| Moderate_Members | bigint | |
| View_Creator_Monetization_Analytics | bigint | |
| Use_Soundboard | bigint | |
| Create_Guild_Expressions | bigint | |
| Create_Events | bigint | |
| Use_External_Sounds | bigint | |
| Send_Voice_Messages | bigint | |
| Send_Polls | bigint | |