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(ApplicationCommand): default option.required fix #5848

Merged
merged 2 commits into from Jun 14, 2021
Merged

fix(ApplicationCommand): default option.required fix #5848

merged 2 commits into from Jun 14, 2021

Conversation

muchnameless
Copy link
Contributor

Please describe the changes this PR makes and why it should be merged:
#5838 introduced a bug that made it impossible to set the required option to true due to operator precedence, this PR fixes that

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

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.

Nice catch! Just one thing:

src/structures/ApplicationCommand.js Show resolved Hide resolved
@ImRodry
Copy link
Contributor

ImRodry commented Jun 13, 2021

Oopsie! Tbh I got quite confused when husky asked me to add those brackets and I was scared it would break something but thought it was ok since no one mentioned it. Nice catch!

@iCrawl iCrawl merged commit a1f94f6 into discordjs:master Jun 14, 2021
@muchnameless muchnameless deleted the required-fix branch June 14, 2021 08:21
@iCrawl iCrawl added this to the Version 13 milestone Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants