Update send_webhook.ts

This commit is contained in:
Skillz4Killz
2021-05-07 21:10:03 -04:00
committed by GitHub
parent ae401a8eb7
commit b6da492471

View File

@@ -66,7 +66,7 @@ export async function sendWebhook(
const result = await rest.runMethod<Message>(
"post",
`${endpoints.WEBHOOK(webhookId, webhookToken)}?wait=${options.wait}${
`${endpoints.WEBHOOK(webhookId, webhookToken)}?wait=${options.wait ?? false}${
options.threadId ? `&thread_id=${options.threadId}` : ""
}`,
{