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

fix(website): nullable parameters on events #10510

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

Qjuh
Copy link
Contributor

@Qjuh Qjuh commented Sep 15, 2024

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

Adds | null to the types on website for parameter of events that are nullable. This was a regression ever since js events were parsed into api-extractor generated docs.

See https://discord.js.org/docs/packages/discord.js/main/Client:Class#presenceUpdate for an example, oldPresence here is nullable but not shown as such. This PR fixes that.

Status and versioning classification:

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

@Qjuh Qjuh requested a review from iCrawl as a code owner September 15, 2024 18:46
Copy link

vercel bot commented Sep 15, 2024

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
discord-js ⬜️ Ignored (Inspect) Visit Preview Sep 15, 2024 6:49pm
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview Sep 15, 2024 6:49pm

@Qjuh Qjuh force-pushed the website/nullable-event-params branch from 820f479 to a54349d Compare September 15, 2024 18:48
@kodiakhq kodiakhq bot merged commit 99136d6 into discordjs:main Sep 15, 2024
24 checks passed
monbrey pushed a commit to monbrey/discord.js that referenced this pull request Sep 18, 2024
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.

4 participants