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

refactor(embed): remove array support in favor of rest params #7498

Merged
merged 1 commit into from Feb 20, 2022

Conversation

almeidx
Copy link
Member

@almeidx almeidx commented Feb 18, 2022

Please describe the changes this PR makes and why it should be merged:
Other methods from builders do not support arrays either and it seems like it was a conscious decision #7395 (comment)

  • removed support for arrays from addFields() and spliceFields()
  • removed the normalizeFields() method as it no longer serves a purpose

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 includes breaking changes (methods removed or renamed, parameters moved or removed)

Copy link
Member

@kyranet kyranet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one doubt:

packages/builders/src/messages/embed/Embed.ts Show resolved Hide resolved
@iCrawl iCrawl merged commit b3fa2ec into discordjs:main Feb 20, 2022
@almeidx almeidx deleted the embed branch February 20, 2022 12:56
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

5 participants