add: webhook thread support

This commit is contained in:
ITOH
2021-05-04 22:36:00 +02:00
parent c5cf4ba353
commit d16280512c
2 changed files with 5 additions and 3 deletions
+3 -3
View File
@@ -66,9 +66,9 @@ export async function sendWebhook(
const result = await rest.runMethod<Message>(
"post",
`${endpoints.WEBHOOK(webhookId, webhookToken)}${
options.wait ? "?wait=true" : ""
}`,
`${endpoints.WEBHOOK(webhookId, webhookToken)}?wait=${
options.wait ? "true" : "false"
}${options.threadId ? `&thread_id=${options.threadId}` : ""}`,
{
...options,
allowed_mentions: options.allowedMentions,