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: unsafe embed builder field normalization #7418

Conversation

suneettipirneni
Copy link
Member

@suneettipirneni suneettipirneni commented Feb 7, 2022

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

Uses the unsafe field normalizer for unsafe embeds. Closes #7416

This also adds a new interface type: JSONEncodable<T>, for better type enforcement and reusability.

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

@suneettipirneni suneettipirneni force-pushed the builders/fix/unsafe-field-normalization branch from 0a224d7 to 0fc9665 Compare February 7, 2022 02:02
@suneettipirneni suneettipirneni changed the title Builders/fix/unsafe-field-normalization fix: unsafe embed builder field normalization Feb 7, 2022
@suneettipirneni suneettipirneni force-pushed the builders/fix/unsafe-field-normalization branch from 0fc9665 to 47e3c23 Compare February 7, 2022 02:06
Copy link
Member

@vladfrangu vladfrangu left a comment

Choose a reason for hiding this comment

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

Scopes who? 😄

@SpaceEEC SpaceEEC added this to the builders v1 milestone Feb 7, 2022
@iCrawl iCrawl merged commit b936103 into discordjs:main Feb 7, 2022
@suneettipirneni suneettipirneni deleted the builders/fix/unsafe-field-normalization branch February 7, 2022 12:04
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.

UnsafeEmbed should not validate input on #addFields call
4 participants