Update Webhook.js

oof,..
This commit is contained in:
lazuee 2022-04-22 01:55:51 +08:00 committed by GitHub
parent 8749c50f0a
commit c08042d64f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,7 +212,7 @@ class Webhook {
query: { thread_id: messagePayload.options.threadId, wait: true }, query: { thread_id: messagePayload.options.threadId, wait: true },
auth: false, auth: false,
}); });
d.webembed = this.client.channels?.cache.get(d.channel_id)?.messages._add(d, false) ?? d; d.webembed = this.client.channels?.cache.get(_d.channel_id)?.messages._add(_d, false) ?? _d;
} }
return this.client.channels?.cache.get(d.channel_id)?.messages._add(d, false) ?? d; return this.client.channels?.cache.get(d.channel_id)?.messages._add(d, false) ?? d;