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

types(Builder.from): fix wrong types #10071

Merged
merged 3 commits into from
Feb 23, 2024

Conversation

Syjalo
Copy link
Contributor

@Syjalo Syjalo commented Jan 6, 2024

Please describe the changes this PR makes and why it should be merged:

  • APISelectMenuComponent type represents any type of the select menus. Creating specific menu from any one is wrong. For example, UserSelectMenuBuilder.from(<APIRoleSelectComponent>)
  • APIModalComponent type represents modal's components, not the modal component itself

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

@Syjalo Syjalo requested a review from a team as a code owner January 6, 2024 02:24
Copy link

vercel bot commented Jan 6, 2024

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

Name Status Preview Comments Updated (UTC)
discord-js ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 23, 2024 11:51am
discord-js-guide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 23, 2024 11:51am

@kodiakhq kodiakhq bot merged commit bfbd62e into discordjs:main Feb 23, 2024
6 checks passed
@Syjalo Syjalo deleted the types(Builder.from)/fix-wrong-types branch April 4, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants