mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 16:30:08 +00:00
BREAKING(helpers): getDmChannel if no dm perms
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user