Skip to content

Commit

Permalink
fix(MessagePayload): resolveBody check body instead of data (#7738)
Browse files Browse the repository at this point in the history
  • Loading branch information
muchnameless committed Apr 12, 2022
1 parent ebb4dfa commit 3db20ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/MessagePayload.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class MessagePayload {
* @returns {MessagePayload}
*/
resolveBody() {
if (this.data) return this;
if (this.body) return this;
const isInteraction = this.isInteraction;
const isWebhook = this.isWebhook;

Expand Down

0 comments on commit 3db20ab

Please sign in to comment.