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

fix(Interactions): make app_permissions required #652

Merged
merged 1 commit into from
Dec 14, 2022

Conversation

advaith1
Copy link
Contributor

This makes app_permissions required in application command and message component interactions, where channel_id and data are set to required.

Currently discord-api-types is very inconsistent about interaction required fields and more work should probably be done to fix that; this might be due to the docs also being inconsistent about these

locale is set as required in the interaction structure but then removed in ping
data is set as optional in the interaction structure but then set as required in all subinterfaces except ping
channel_id is set as optional in the interaction structure but then set as required for cmds and components, although it should also be required in autocomplete and modal submit

for now I just made autocomplete copy channel_id's current behavior as a quick fix, but this should be straightened out in general tbh. I'll see if we can get the docs cleaned up

@vercel
Copy link

vercel bot commented Nov 23, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
discord-api-types ✅ Ready (Inspect) Visit Preview Nov 23, 2022 at 2:17AM (UTC)

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

Successfully merging this pull request may close these issues.

None yet

2 participants