Skip to content

Conversation

MrMythicalYT
Copy link
Contributor

Please describe the changes this PR makes and why it should be merged:
This PR makes the SlashCommandBuilder and ContextMenuCommandBuilder classes use .data
Status and versioning classification:

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

@vercel
Copy link

vercel bot commented Nov 23, 2022

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

Name Status Preview Updated
discord-js ❌ Failed (Inspect) Dec 9, 2022 at 0:57AM (UTC)
discord-js-guide ✅ Ready (Inspect) Visit Preview Dec 9, 2022 at 0:57AM (UTC)

@MrMythicalYT MrMythicalYT marked this pull request as ready for review December 3, 2022 16:19
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.

The following suggestions apply to all of the occurrences of the same pattern.

Comment on lines +107 to 109
if (!this.data.name_localizations) {
this.data.name_localizations = {};
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (!this.data.name_localizations) {
this.data.name_localizations = {};
}
this.data.name_localizations ??= {};

Copy link
Member

Choose a reason for hiding this comment

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

Although I'd argue that this should be done after the validation checks.

@Jiralite Jiralite added this to the discord.js 15.0.0 milestone Jul 31, 2024
@Jiralite
Copy link
Member

Jiralite commented Sep 8, 2024

Closing in favour of #10448.

@Jiralite Jiralite closed this Sep 8, 2024
@almeidx almeidx removed the blocked label Oct 2, 2024
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.

4 participants