Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add InteractionCallbackResponse #1584

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

elliotwms
Copy link
Contributor

The interaction callback endpoint returns an interaction callback response as described in the docs: https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-callback-interaction-callback-response-object

This PR adds the structs, and updates the InteractionCallback func to return them

@elliotwms
Copy link
Contributor Author

elliotwms commented Oct 25, 2024

Just checked the actual Discord API behaviour for both InteractionResponseDeferredChannelMessageWithSource and InteractionResponseChannelMessageWithSource, and it's a 204 No Content in both cases.

This response body may be returned on other types but I've not been able to test it. If that's the case then there's less utility in this change than I first thought

@elliotwms
Copy link
Contributor Author

I don't currently have a use for this, and am not able to test it, so I'll leave the PR here in case someone would like to pick it up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant