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(MessagePayload): crash when resolving body #10454

Closed N1ckPro closed 2 months ago

N1ckPro commented 2 months ago

Please describe the changes this PR makes and why it should be merged: this.client is undefined meaning this code currently crashes

Regression from #10381

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/GLJyE9gpTruG94tKg6NikJwHHKPr)) | [Visit Preview](https://discord-js-git-fork-n1ckpro-fix-message-payload-error-discordjs.vercel.app) | | Aug 20, 2024 3:59pm | | **discord-js-guide** | ⬜️ Ignored ([Inspect](https://vercel.com/discordjs/discord-js-guide/2RRGypFcXcN2E9t92FGsL1y3k6WG)) | [Visit Preview](https://discord-js-guide-git-fork-n1ckpro-fix-message-9c598a-discordjs.vercel.app) | | Aug 20, 2024 3:59pm |
JMTK commented 2 months ago

Good catch, thank you for fixing that!