fix(MessagePayload): resolveBody check body instead of data (#7738)

This commit is contained in:
muchnameless
2022-04-12 17:15:21 +02:00
committed by GitHub
parent ebb4dfa262
commit 3db20abdd2

View File

@@ -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;