Skip to content

feat: Support select in modals #1321

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

feat: Support select in modals #1321

wants to merge 12 commits into from

Conversation

Jiralite
Copy link
Member

@Jiralite Jiralite commented Aug 7, 2025

Copy link

vercel bot commented Aug 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
discord-api-types Ready Ready Preview Comment Aug 21, 2025 7:55am

Qjuh
Qjuh previously requested changes Aug 7, 2025
@Jiralite Jiralite marked this pull request as ready for review August 21, 2025 07:16
@Jiralite Jiralite requested review from a team as code owners August 21, 2025 07:16
export type APIComponentInMessageActionRow = APIButtonComponent | APIStringSelectComponent;

/**
* @see {@link https://discord.com/developers/docs/components/reference#action-row}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the addition of APIComponentInLabel, seems that is indeed correct. Or not totally correct?

We can do slap a TODO on it and optionally remove the documentation link until labels are documented. Thoughts?

/**
* @see {@link https://discord.com/developers/docs/components/reference#action-row}
*/
export type APIComponentInModal = APIComponentInLabel | APIComponentInModalActionRow;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be APILabelComponent | APIModalActionRowThing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APIModalComponent above seems to be that. The naming conventions don't really seem intuitive, but it is what it is.

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.

5 participants