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 }); }