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: make channel types a lot stricter #7120

Merged
merged 1 commit into from
Dec 22, 2021

Conversation

kyranet
Copy link
Member

@kyranet kyranet commented Dec 16, 2021

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

Brings a new set of strict channel types based on @ImRodry's typeguards from #6957. This change also makes sure that the set of possible channel types are strict, explicit, and matching the actual classes obtained during runtime.

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 only includes non-code changes, like changes to documentation, README, etc.

@iCrawl iCrawl merged commit 7b65a04 into discordjs:main Dec 22, 2021
@kyranet kyranet deleted the types/stricter-types branch January 7, 2022 20:05
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