Skip to content

Commit

Permalink
feat(permissions): add new permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain committed Jun 22, 2024
1 parent 407369c commit ac93da5
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2441,6 +2441,12 @@ const (

// Allows sending voice messages.
PermissionSendVoiceMessages = 1 << 46

// Allows sending polls.
PermissionSendPolls = 1 << 49

// Allows user-installed apps to send public responses. When disabled, users will still be allowed to use their apps but the responses will be ephemeral. This only applies to apps not also installed to the server.
PermissionUseExternalApps = 1 << 50
)

// Constants for the different bit offsets of voice permissions
Expand Down Expand Up @@ -2502,14 +2508,20 @@ const (
// Deprecated: PermissionManageEmojis has been replaced by PermissionManageGuildExpressions.
PermissionManageEmojis = 1 << 30

// Allows management and editing of emojis, stickers, and soundboard sounds.
// Allows for editing and deleting emojis, stickers, and soundboard sounds created by all users.
PermissionManageGuildExpressions = 1 << 30

// Allows for creating, editing, and deleting scheduled events.
// Allows for editing and deleting scheduled events created by all users.
PermissionManageEvents = 1 << 33

// Allows for viewing role subscription insights.
PermissionViewCreatorMonetizationAnalytics = 1 << 41

// Allows for creating emojis, stickers, and soundboard sounds, and editing and deleting those created by the current user.
PermissionCreateGuildExpressions = 1 << 43

// Allows for creating scheduled events, and editing and deleting those created by the current user.
PermissionCreateEvents = 1 << 44
)

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

0 comments on commit ac93da5

Please sign in to comment.