Set with_components when sending components through webhooks

This commit is contained in:
Elysia
2025-07-08 20:09:13 +07:00
parent cda79ba386
commit 8eb32a16fe

View File

@@ -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,
}); });