From d0948c0e4997e56f66770a9c45636e2b20f868c6 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 24 Mar 2025 07:29:56 -0700 Subject: [PATCH] Updated error message for empty webhook update body --- src/api/routes/webhooks/#webhook_id/#token/index.ts | 2 +- src/api/routes/webhooks/#webhook_id/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/routes/webhooks/#webhook_id/#token/index.ts b/src/api/routes/webhooks/#webhook_id/#token/index.ts index 6b0ba7de..aea9ba87 100644 --- a/src/api/routes/webhooks/#webhook_id/#token/index.ts +++ b/src/api/routes/webhooks/#webhook_id/#token/index.ts @@ -353,7 +353,7 @@ router.patch( }); const channel_id = webhook.channel_id; if (!body.name && !body.avatar) { - throw new HTTPError("Empty messages are not allowed", 50006); + throw new HTTPError("Empty webhook updates are not allowed", 50006); } if (body.avatar) body.avatar = await handleFile( diff --git a/src/api/routes/webhooks/#webhook_id/index.ts b/src/api/routes/webhooks/#webhook_id/index.ts index 25eebc76..9e893346 100644 --- a/src/api/routes/webhooks/#webhook_id/index.ts +++ b/src/api/routes/webhooks/#webhook_id/index.ts @@ -158,7 +158,7 @@ router.patch( throw DiscordApiErrors.UNKNOWN_WEBHOOK; if (!body.name && !body.avatar && !body.channel_id) { - throw new HTTPError("Empty messages are not allowed", 50006); + throw new HTTPError("Empty webhook updates are not allowed", 50006); } if (body.avatar)