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: `GuildChannel#guildId` not being patched to `undefined` #10505

Closed Qjuh closed 2 months ago

Qjuh commented 2 months ago

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

Fixes #10495.

guild_id only gets passed to Action#getChannel() if it exists in the payload as key.

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/FgA3jjz6jPjsW569PuykXDrTEAL2)) | [Visit Preview](https://discord-js-git-fork-qjuh-fix-guildchannel-null-9869de-discordjs.vercel.app) | | Sep 14, 2024 10:55am | | **discord-js-guide** | ⬜️ Ignored ([Inspect](https://vercel.com/discordjs/discord-js-guide/Bkyt7tcPisKREuPLTP19mam8exH1)) | [Visit Preview](https://discord-js-guide-git-fork-qjuh-fix-guildchanne-2f56a4-discordjs.vercel.app) | | Sep 14, 2024 10:55am |