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)