Update send_webhook.ts

This commit is contained in:
ITOH
2021-05-05 15:54:41 +02:00
parent d16280512c
commit 774d7649f5
+3 -3
View File
@@ -66,9 +66,9 @@ export async function sendWebhook(
const result = await rest.runMethod<Message>(
"post",
`${endpoints.WEBHOOK(webhookId, webhookToken)}?wait=${
options.wait ? "true" : "false"
}${options.threadId ? `&thread_id=${options.threadId}` : ""}`,
`${endpoints.WEBHOOK(webhookId, webhookToken)}?wait=${options.wait}${
options.threadId ? `&thread_id=${options.threadId}` : ""
}`,
{
...options,
allowed_mentions: options.allowedMentions,