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

docs(WebhookClient): Make constructor a union #8370

Merged
merged 2 commits into from Jul 27, 2022

Conversation

Jiralite
Copy link
Member

Please describe the changes this PR makes and why it should be merged:
WebhookClientData is now a union of two possible objects rather than one object containing all the properties. This reflects the typings exactly and also introduces WebhookClientDataIdWithToken & WebhookClientDataURL in the documentation which also reflects the typings exactly.

This also fixes an issue where the return type of the top-level function parseWebhookURL() documented the id as a string instead of a Snowflake.

Status and versioning classification:

  • This PR only includes non-code changes, like changes to documentation, README, etc.

@vercel
Copy link

vercel bot commented Jul 26, 2022

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

Name Status Preview Updated
discord-js ✅ Ready (Inspect) Visit Preview Jul 26, 2022 at 0:48AM (UTC)

Co-authored-by: muchnameless <12682826+muchnameless@users.noreply.github.com>
@vercel vercel bot temporarily deployed to Preview July 26, 2022 12:48 Inactive
@iCrawl iCrawl merged commit e9920a9 into discordjs:main Jul 27, 2022
@Jiralite Jiralite deleted the docs/webhook-snowflake branch July 27, 2022 10:11
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

3 participants