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(Integration): add missing props and fix docs/types #6623

Merged
merged 4 commits into from Sep 23, 2021

Conversation

ImRodry
Copy link
Contributor

@ImRodry ImRodry commented Sep 11, 2021

Please describe the changes this PR makes and why it should be merged:
This PR adds a few missing properties to Integration and properly documents all the other ones. I also created an enum in Constants with the expireBehavior and a TODO comment for v14 where we will be able to change all the undefined properties to null, which is what the library does most of the time.
Also added the Snowflake|string redundant type union just to make it more clear that some ids can be snowflakes and others can be stringified numbers that are not IDs (only on youtube/twitch integrations)

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)

Co-authored-by: Noel <buechler.noel@outlook.com>
@iCrawl iCrawl merged commit caa3b60 into discordjs:main Sep 23, 2021
@ImRodry ImRodry deleted the feat-integration-props-docs branch September 23, 2021 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants