mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
BREAKING(helpers): getWebhook can return undefined
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user