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: use mapped enums instead of overloads #7088

Merged
merged 2 commits into from Dec 14, 2021

Conversation

suneettipirneni
Copy link
Member

@suneettipirneni suneettipirneni commented Dec 9, 2021

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

This PR goes through and removes any places where manual overloads are being used instead of mapped types. It also slims down that amount of type-logic needed for these functions.

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

@Jiralite Jiralite left a comment

Choose a reason for hiding this comment

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

Was it intentional to remove the @deprecated descriptions?

@suneettipirneni
Copy link
Member Author

suneettipirneni commented Dec 9, 2021

Was it intentional to remove the @deprecated descriptions?

No, I was trying to find the commit that added them do you know what the descriptions were?

@Jiralite
Copy link
Member

Jiralite commented Dec 9, 2021

The commit is 5ec542d!

/** @deprecated See [Self-serve Game Selling Deprecation](https://support-dev.discord.com/hc/en-us/articles/4414590563479) for more information */

@iCrawl iCrawl merged commit 49f9a18 into discordjs:main Dec 14, 2021
@suneettipirneni suneettipirneni deleted the types/enum-mapping branch February 7, 2022 16:24
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.

None yet

6 participants