BREAKING(helpers): getDmChannel if no dm perms

This commit is contained in:
Skillz4Killz
2022-05-30 22:18:08 +00:00
committed by GitHub
parent e05e409d76
commit 695fb7a4bc

View File

@@ -9,5 +9,7 @@ export async function getDmChannel(bot: Bot, userId: bigint) {
recipient_id: userId.toString(),
});
if (!dmChannelData?.id) return;
return bot.transformers.channel(bot, { channel: dmChannelData });
}