diff --git a/helpers/webhooks/getWebhook.ts b/helpers/webhooks/getWebhook.ts index bcb15e03d..690bf0355 100644 --- a/helpers/webhooks/getWebhook.ts +++ b/helpers/webhooks/getWebhook.ts @@ -9,5 +9,7 @@ export async function getWebhook(bot: Bot, webhookId: bigint) { bot.constants.routes.WEBHOOK_ID(webhookId), ); + if (!result?.id) return; + return bot.transformers.webhook(bot, result); }