Provide a way for applications to specify a command as guild-only globally without the need of a guild id #3605
Unanswered
Andre601
asked this question in
API Feature Requests & Ideas
Replies: 2 comments
-
I think this is definitely a needed condition, especially from a UX perspective, it would be a great addition. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The implementation suggested in #3305 is very similar as it would remove the issue with commands in DMs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Note
I'll use the term "application" throughout this post to refer to both setups with and without bots.
The idea
There should be an API-Endpoint that allows applications to define slash commands as guild-only similar to the current system but without the need of defining a guild id.
Maybe the URL could be like this:
https://discord.com/api/v8/applications/<my_application_id>/guilds/commands
Reason
Developers may only want to provide slash commands on a guild-level, which requires them to either set the command as global and handle DMs (i.e. return an error message) or as guild-only which requires the application to provide a guild ID.
While it may be easy for a small, private application to set a few guild ids, is it pretty much API-spam for applications on several hundred if not even thousands of servers.
In addition, is handling DM commands an extra burden the developer has to deal with for no benefit at all.
Extra info
I don't really want the benefits of guild-only commands (i.e. instant propagation) to be available for the above idea, but just a way for an application to tell the API that these slash commands should only show in Guilds and not on other places.
Beta Was this translation helpful? Give feedback.
All reactions