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

feat(ApplicationCommandOptionType): add NUMBER (10) #6128

Merged
merged 4 commits into from Jul 27, 2021

Conversation

advaith1
Copy link
Contributor

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

Since this is currently only implemented in the canary API, you must add http: {headers: {'x-debug-options': 'canary'}} or http: {api: 'https://canary.discord.com/api'} to your ClientOptions to create type 10 options. They can also currently only be viewed on the canary client.

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

@monbrey
Copy link
Member

monbrey commented Jul 16, 2021

What exactly is this, support for floating point vs the INTEGER option type?

@iCrawl
Copy link
Member

iCrawl commented Jul 16, 2021

Yes

@advaith1
Copy link
Contributor Author

yeah

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.

If that's all we have to do, :woah:
LGTM

@iCrawl iCrawl added this to the Version 13 milestone Jul 24, 2021
@advaith1
Copy link
Contributor Author

advaith1 commented Jul 24, 2021

If that's all we have to do, :woah:

this was made before OptionResolver got merged, I'll add it to there but then it should be all

@iCrawl
Copy link
Member

iCrawl commented Jul 26, 2021

@iCrawl iCrawl merged commit 2f1cc1f into discordjs:master Jul 27, 2021
@advaith1 advaith1 deleted the option-type-number branch July 27, 2021 10:40
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

7 participants