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

types(ApplicationCommandOption): add ApplicationCommandBooleanOption #8434

Merged
merged 2 commits into from Aug 10, 2022
Merged

types(ApplicationCommandOption): add ApplicationCommandBooleanOption #8434

merged 2 commits into from Aug 10, 2022

Conversation

janparisek
Copy link
Contributor

Please describe the changes this PR makes and why it should be merged:
Add ApplicationCommandOptionType.Boolean to CommandOptionChoiceResolvableType union
Add interface ApplicationCommandBooleanOptionData
Add interface ApplicationCommandBooleanOption
Add ApplicationCommandBooleanOption to ApplicationCommandSubCommandData.options union
Add ApplicationCommandBooleanOptionData to ApplicationCommandOptionData union
Add ApplicationCommandBooleanOption to ApplicationCommandOption union

Fixes #8433

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 changes the library's interface (methods or parameters added)

Add `ApplicationCommandOptionType.Boolean` to `CommandOptionChoiceResolvableType` union
Add interface `ApplicationCommandBooleanOptionData`
Add interface `ApplicationCommandBooleanOption`
Add `ApplicationCommandBooleanOption` to `ApplicationCommandSubCommandData.options` union
Add `ApplicationCommandBooleanOptionData` to `ApplicationCommandOptionData` union
Add `ApplicationCommandBooleanOption` to `ApplicationCommandOption` union
@vercel
Copy link

vercel bot commented Aug 4, 2022

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

Name Status Preview Updated
discord-js ✅ Ready (Inspect) Visit Preview Aug 4, 2022 at 7:07PM (UTC)

@Jiralite Jiralite added this to the discord.js v14.2 milestone Aug 4, 2022
@vercel vercel bot temporarily deployed to Preview August 4, 2022 15:58 Inactive
packages/discord.js/typings/index.d.ts Outdated Show resolved Hide resolved
@janparisek janparisek marked this pull request as draft August 4, 2022 18:48
Make `ApplicationCommandBooleanOptionData` inherit from `BaseApplicationCommandOptionsData`
Make `ApplicationCommandBooleanOption` inherit from `BaseApplicationCommandOptionsData`
Remove `ApplicationCommandOptionType.Boolean` from `CommandOptionChoiceResolvableType` union

Fixes Boolean option type appearing as a choice.
@vercel vercel bot temporarily deployed to Preview August 4, 2022 19:07 Inactive
@janparisek janparisek marked this pull request as ready for review August 4, 2022 19:28
@Jiralite
Copy link
Member

Jiralite commented Aug 4, 2022

Could you possibly expand this fix for other types too?

@janparisek
Copy link
Contributor Author

I'll have a look into it, but don't want to promise anything. This is my first time working on d.js' code base, so I don't know what kind of unforseen issues I'll run into.

@iCrawl iCrawl merged commit 38275fc into discordjs:main Aug 10, 2022
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.

ApplicationCommandOption union is missing ApplicationCommandBooleanOption
6 participants