From ac93da5e341de4a1826312f634e5310523cca927 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Sat, 22 Jun 2024 16:45:53 +0200 Subject: [PATCH] feat(permissions): add new permissions --- structs.go | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/structs.go b/structs.go index 291662a10..3657f13b1 100644 --- a/structs.go +++ b/structs.go @@ -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 @@ -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