Encode interaction information such as command name in the URL of POST requests to application interaction endpoint URL #3765
Unanswered
ghost
asked this question in
API Feature Requests & Ideas
Replies: 1 comment 4 replies
-
I love this, but how does it apply to the gateway? Is it an outgoing webhook only option that discord has to develop strictly for that use case? |
Beta Was this translation helpful? Give feedback.
4 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.
-
So I mentioned this in the discord-api discord and they suggested posting it here...
So right now Discord simply POSTs to the exact same interactions endpoint URL you provide, and all information is in the JSON body. I think it would be a good idea if Discord were to append REST-style information to that URL, for example, POST
{interaction_url}/commands/examplecommand
when someone uses /examplecommand. This has the following advantages:Beta Was this translation helpful? Give feedback.
All reactions