-
Notifications
You must be signed in to change notification settings - Fork 418
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
Added support for select menus v2 #1540
Conversation
index.d.ts
Outdated
interface BaseSelectMenu extends SelectMenuBase { | ||
type: Exclude<SelectMenuTypes, Constants["ComponentTypes"][keyof Pick<Constants["ComponentTypes"], "STRING_SELECT" | "CHANNEL_SELECT">]>; | ||
} | ||
interface SelectMenuBase { | ||
custom_id: string; | ||
disabled?: boolean; | ||
default_values?: SelectDefaultValues[]; | ||
max_values?: number; | ||
min_values?: number; | ||
options: SelectMenuOptions[]; | ||
placeholder?: string; | ||
type: Constants["ComponentTypes"]["SELECT_MENU"]; | ||
type: SelectMenuTypes; | ||
} |
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.
I'm confused as to the reason you are handling the parent select menu interface this way.
Also please remember to sort interfaces in alphabetical order
Also example file should be updated |
I'd appreciate an explanation rather than silently changing typings. Can you message me on the discord serve? discord.gg/eris |
…d' and 'non-resolved', removed the individual definitions for each of the select menu types and added a unified "ResolvedSelectMenus" interface
Select menus (v2) are here!
Added support for the second version of select menus discord/discord-api-docs#5543, as well as default_values for auto-populated select menus discord/discord-api-docs#6442