From 695fb7a4bcbd619caffc2c261665952d565c2d52 Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Mon, 30 May 2022 22:18:08 +0000 Subject: [PATCH] BREAKING(helpers): getDmChannel if no dm perms --- helpers/members/getDmChannel.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helpers/members/getDmChannel.ts b/helpers/members/getDmChannel.ts index ac181495a..fdc228aeb 100644 --- a/helpers/members/getDmChannel.ts +++ b/helpers/members/getDmChannel.ts @@ -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 }); }