From 774d7649f5bc78c43eb1714325a8f6fe1e742070 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Wed, 5 May 2021 15:54:41 +0200 Subject: [PATCH] Update send_webhook.ts --- src/helpers/webhooks/send_webhook.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers/webhooks/send_webhook.ts b/src/helpers/webhooks/send_webhook.ts index 20cd92e46..cb90615ed 100644 --- a/src/helpers/webhooks/send_webhook.ts +++ b/src/helpers/webhooks/send_webhook.ts @@ -66,9 +66,9 @@ export async function sendWebhook( const result = await rest.runMethod( "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,