Skip to content

Change application command permissions #1116

Answered by NovaFox161
OpusMagnus5 asked this question in Q&A
Discussion options

You must be logged in to vote

Application command permissions endpoints like the one you mentioned do not function. You will get an error attempting to use that method/endpoint.

Discord redid command permissions (Application Command Permissions V2) several months back. These changes require the bot to obtain an oauth token with the correct scope (applications.commands.permissions.update) included.

Since Discord4J does not yet have Oauth2 support built in, this is impossible to do within the library as-is and requires additional scaffolding to be done on your side, or using an HTTP library to make these requests if you require them.
Here's Discord's docs on these endpoints: https://discord.com/developers/docs/interacti…

Replies: 1 comment

Comment options

NovaFox161
Feb 2, 2023
Maintainer Sponsor

You must be logged in to vote
0 replies
Answer selected by NovaFox161
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants