From b6da4924717bd1986796405b9780e2f2148baaca Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Fri, 7 May 2021 21:10:03 -0400 Subject: [PATCH 1/2] Update send_webhook.ts --- src/helpers/webhooks/send_webhook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/webhooks/send_webhook.ts b/src/helpers/webhooks/send_webhook.ts index ab96626df..d3956eadc 100644 --- a/src/helpers/webhooks/send_webhook.ts +++ b/src/helpers/webhooks/send_webhook.ts @@ -66,7 +66,7 @@ export async function sendWebhook( const result = await rest.runMethod( "post", - `${endpoints.WEBHOOK(webhookId, webhookToken)}?wait=${options.wait}${ + `${endpoints.WEBHOOK(webhookId, webhookToken)}?wait=${options.wait ?? false}${ options.threadId ? `&thread_id=${options.threadId}` : "" }`, { From b4b4a9e66683db180f05494e2ecbf98ccc854f54 Mon Sep 17 00:00:00 2001 From: TriForMine Date: Sat, 8 May 2021 09:18:23 +0200 Subject: [PATCH 2/2] fix(utils): add missing export of hash.ts (#914) * fix(utils): add missing export of hash.ts * Commit from GitHub Actions (Lint) Co-authored-by: TriForMine --- src/helpers/webhooks/send_webhook.ts | 5 ++--- src/util/mod.ts | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers/webhooks/send_webhook.ts b/src/helpers/webhooks/send_webhook.ts index d3956eadc..0a42ae4dd 100644 --- a/src/helpers/webhooks/send_webhook.ts +++ b/src/helpers/webhooks/send_webhook.ts @@ -66,9 +66,8 @@ export async function sendWebhook( const result = await rest.runMethod( "post", - `${endpoints.WEBHOOK(webhookId, webhookToken)}?wait=${options.wait ?? false}${ - options.threadId ? `&thread_id=${options.threadId}` : "" - }`, + `${endpoints.WEBHOOK(webhookId, webhookToken)}?wait=${options.wait ?? + false}${options.threadId ? `&thread_id=${options.threadId}` : ""}`, { ...options, allowed_mentions: options.allowedMentions, diff --git a/src/util/mod.ts b/src/util/mod.ts index 5adeab630..b2d22ebce 100644 --- a/src/util/mod.ts +++ b/src/util/mod.ts @@ -2,6 +2,7 @@ export * from "./bigint.ts"; export * from "./cache_members.ts"; export * from "./collection.ts"; export * from "./constants.ts"; +export * from "./hash.ts"; export * from "./loop_object.ts"; export * from "./permissions.ts"; export * from "./utils.ts";