-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dc2f2ee
to
42bfca7
Compare
369800e
to
277fe68
Compare
206e07c
to
a307dd1
Compare
export type APIComponentInMessageActionRow = APIButtonComponent | APIStringSelectComponent; | ||
|
||
/** | ||
* @see {@link https://discord.com/developers/docs/components/reference#action-row} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
https://discord.com/channels/222078108977594368/1402934237358985246