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>( const result = await rest.runMethod<Message>(
"post", "post",
`${endpoints.WEBHOOK(webhookId, webhookToken)}?wait=${ `${endpoints.WEBHOOK(webhookId, webhookToken)}?wait=${options.wait}${
options.wait ? "true" : "false" options.threadId ? `&thread_id=${options.threadId}` : ""
}${options.threadId ? `&thread_id=${options.threadId}` : ""}`, }`,
{ {
...options, ...options,
allowed_mentions: options.allowedMentions, allowed_mentions: options.allowedMentions,