diff --git a/src/api/util/handlers/Webhook.ts b/src/api/util/handlers/Webhook.ts index 9037f650..54ef26ec 100644 --- a/src/api/util/handlers/Webhook.ts +++ b/src/api/util/handlers/Webhook.ts @@ -34,7 +34,7 @@ export const executeWebhook = async (req: Request, res: Response) => { throw DiscordApiErrors.CANNOT_SEND_EMPTY_MESSAGE; } - const { wait } = req.query; + const wait = req.query.wait === "true"; if (!wait) { res.status(204).send();