BREAKING(helpers): getWebhook can return undefined

This commit is contained in:
Skillz4Killz
2022-05-31 13:35:28 +00:00
committed by GitHub
parent 35920b56cf
commit 9473a1d798
+2
View File
@@ -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);
}