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

feat: new select component types #25

Open
sudojunior opened this issue Oct 18, 2022 · 0 comments
Open

feat: new select component types #25

sudojunior opened this issue Oct 18, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@sudojunior
Copy link
Member

sudojunior commented Oct 18, 2022

ComponentType

export enum ComponentType {
ACTION_ROW = 1,
BUTTON = 2,
SELECT_MENU = 3,
}

  • SELECT_MENU -> STRING_SELECT (with deprecation*)
  • USER_SELECT = 5
  • ROLE_SELECT = 6
  • MENTIONABLE_SELECT (users + roles) = 7
  • CHANNEL_SELECT = 8

Structure changes

  • SelectComponent -> StringSelectComponent (with deprecation*)
  • EntitySelectComponent ResolvableSelectComponent - (user, role, mentionable) - without choices

    Choosing 'MentionableSelectComponent' may be mixed with the MENTIONABLE component itself.

  • AnySelectComponent = Resolvable^ | String^

https://discord.dev/interactions/message-components#select-menu-object-select-menu-structure


*: deprecation duration unknown, likely v1.3.x v2.x

@sudojunior sudojunior added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant