discordjs / discord.js

A powerful JavaScript library for interacting with the Discord API
https://discord.js.org
Apache License 2.0
25.44k stars 3.97k forks source link

fix(website): nullable parameters on events #10510

Closed Qjuh closed 2 months ago

Qjuh commented 2 months ago

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:

vercel[bot] commented 2 months ago

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](https://vercel.com/discordjs/discord-js/4XEX2H4QykgfpmUrbx4NoK1gEdYg)) | [Visit Preview](https://discord-js-git-fork-qjuh-website-nullable-even-bbb9b6-discordjs.vercel.app) | | Sep 15, 2024 6:49pm | | **discord-js-guide** | ⬜️ Ignored ([Inspect](https://vercel.com/discordjs/discord-js-guide/EQEJULB873HoDYQL92VcwQprp4oA)) | [Visit Preview](https://discord-js-guide-git-fork-qjuh-website-nullabl-c6e463-discordjs.vercel.app) | | Sep 15, 2024 6:49pm |