Skip to content

Commit

Permalink
fix: add missing permission constants (#1144)
Browse files Browse the repository at this point in the history
- UseActivities 0x8000000000
- ManageEvents 0x200000000
- UseExternalStickers 0x2000000000

Co-authored-by: EvieDelta <no public email>
  • Loading branch information
evieDelta committed Mar 26, 2022
1 parent 0413c18 commit dec22d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions structs.go
Expand Up @@ -1730,6 +1730,7 @@ const (
PermissionManageThreads = 0x0000000400000000
PermissionCreatePublicThreads = 0x0000000800000000
PermissionCreatePrivateThreads = 0x0000001000000000
PermissionUseExternalStickers = 0x0000002000000000
PermissionSendMessagesInThreads = 0x0000004000000000
)

Expand All @@ -1744,6 +1745,7 @@ const (
PermissionVoiceMoveMembers = 0x0000000001000000
PermissionVoiceUseVAD = 0x0000000002000000
PermissionVoiceRequestToSpeak = 0x0000000100000000
PermissionUseActivities = 0x0000008000000000
)

// Constants for general management.
Expand All @@ -1753,6 +1755,7 @@ const (
PermissionManageRoles = 0x0000000010000000
PermissionManageWebhooks = 0x0000000020000000
PermissionManageEmojis = 0x0000000040000000
PermissionManageEvents = 0x0000000200000000
)

// Constants for the different bit offsets of general permissions
Expand Down

0 comments on commit dec22d7

Please sign in to comment.