Update to application command permissions #4831
Replies: 1 comment
-
On second thought, I think the current implementation is fine. It gives a lot of flexibility and basically lets the server admins have the ability to do whatever they want, with bot devs being able to provide a sensible default value. If we still don't want that, we can easily integrate backend checks anyway. |
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.
-
Hey all—
Today the new Command Permissions system (has been called permissions v2) has been rolled out to new users—though the UI changes are currently only on desktop. You should see the update when you refresh your client. This launch introduces quite a few changes which can be viewed in the docs PR and changelog entry.
I wanted to post the main changes, especially the breaking ones, here for visibility as well.
Breaking changes
PUT /applications/{application.id}/guilds/{guild.id}/commands/permissions
). Instead, you can fetch the guild commands and edit them individually.Other major changes
CHANNEL
permission typeguild_id - 1
) to represent all channelsdefault_member_permissions
anddm_permission
Again, more payload and implementation details can be found in the docs PR (which will be merged and made live later today): #4830
Beta Was this translation helpful? Give feedback.
All reactions