Set with_components when sending components through webhooks
This commit is contained in:
@@ -199,7 +199,7 @@ class Webhook {
|
|||||||
const d = await this.client.api.webhooks(this.id, this.token).post({
|
const d = await this.client.api.webhooks(this.id, this.token).post({
|
||||||
data,
|
data,
|
||||||
files,
|
files,
|
||||||
query: { thread_id: messagePayload.options.threadId, wait: true },
|
query: { thread_id: messagePayload.options.threadId, wait: true, with_components: data?.components?.length > 0 },
|
||||||
auth: false,
|
auth: false,
|
||||||
webhook: true,
|
webhook: true,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user