Command Permission Deprecation #290
Snazzah
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With the release of Command Permissions V2, breaking changes have been made to the API regarding command permissions. Most notably, the bulk update command permissions endpoint has been disabled and the update command permission endpoint has been locked to Bearer tokens meaning that bots can no longer update command permissions.
Since this is a breaking change to Discord's API rather than slash-create itself, the deprecation of command permissions will be in v5.5.0 and will be removed in v6. The following methods/options are deprecated and will be removed in the future:
SyncCommandOptions#syncPermissions
SlashCreator#syncCommandPermissions
SlashCommandOptions#permissions
SlashCreatorAPI#bulkUpdateCommandPermissions
Instead of defining permissions per-guild, developers can now set the member permissions required with
SlashCommandOptions#requiredPermissions
and enable/disable whether to use the command in DMs withSlashCommandOptions#dmPermission
.You can also force permission checking within command execution with
SlashCommandOptions#forcePermissions
Relevant Links:
Beta Was this translation helpful? Give feedback.
All reactions