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

fix(builders): make type optional in constructor #7391

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

DTrombett
Copy link
Contributor

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

Make property type in components constructor optional as it's not used by the class but just marked as constant.
I did a type intersection instead of using Omit because it caused problems with the Button class.

Close #7342

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
  • This PR only includes non-code changes, like changes to documentation, README, etc.

@iCrawl iCrawl merged commit 4abb28c into discordjs:main Feb 2, 2022
@DTrombett DTrombett deleted the fix/optional-type branch February 2, 2022 21:29
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.

type property in component constructors is required
5 participants