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: don't create new instances of builders classes #7343

Merged
merged 1 commit into from Jan 26, 2022

Conversation

ImRodry
Copy link
Contributor

@ImRodry ImRodry commented Jan 25, 2022

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

This PR makes it so that if a builders class is passed onto createComponent it is returned as-is, without creating a new instance of it so we can keep referencing it. Also changed types of ActionRow slightly to make it easier to type it

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes

@iCrawl iCrawl merged commit d6b56d0 into discordjs:main Jan 26, 2022
@ImRodry ImRodry deleted the no-new-classes-builders branch January 26, 2022 14:12
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.

None yet

6 participants