Upcoming Breaking Change to Bot Permissions #5134
Replies: 2 comments 3 replies
-
This is a good and long-awaited change for the Use External Emojis permission. However, as we have been discussing in DDevs #api, this change is a pain for permissions that previously were not checked for interactions and webhooks, such as Embed Links. One of the benefits of using interactions is that you don't need to worry about making sure the bot has embed permissions, since they are essential to most bots and if the server does not give everyone embed permissions, it is annoying to have to give the bot the permission, and it is also annoying to the dev to have to check if the bot has embed perms everywhere. Additionally, it's very weird to enforce these permission restrictions on webhooks, which are generally supposed to be standalone. Please do not make this change for currently unchecked permissions like Embed Links. |
Beta Was this translation helpful? Give feedback.
-
Hey all— I wanted to post an update that we're removing the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Change to Bot Permissions in Interactions and Webhooks
Starting on July 28, 2022 (in about a month), the way bot's permissions will be calculated for interaction responses and webhook execution will be updated for
MENTION_EVERYONE
andUSE_EXTERNAL_EMOJIS
. Instead of using the permissions calculated for@-everyone
, these permissions will be calculated specifically for the bot (including any overwrites).This change aligns with how bot's permissions are calculated when performing actions like posting a message to a channel. More details can be found in the change log entry.
🧑💻 Updating your app
If your bot wants to use the
MENTION_EVERYONE
orUSE_EXTERNAL_EMOJIS
permissions when responding to interactions or executing a webhook, ensure that the bot was installed (or explicitly granted) with them.Using the new
app_permissions
field will hopefully make it a bit easier to fetch the contextual permissions your bot has.Beta Was this translation helpful? Give feedback.
All reactions