From e15c7e0cf4d4d43c006d5e90a992abd0193632c0 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 28 Apr 2024 18:24:47 -0400 Subject: [PATCH] Fix help dm check --- commands/util-public/help.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/util-public/help.js b/commands/util-public/help.js index d3a177c5..50ce6eca 100644 --- a/commands/util-public/help.js +++ b/commands/util-public/help.js @@ -58,7 +58,7 @@ module.exports = class HelpCommand extends Command { try { const msgs = []; for (const embed of embeds) msgs.push(await msg.direct({ embeds: [embed] })); - if (msg.channel.type !== 'dm') msgs.push(await msg.say('📬 Sent you a DM with information.')); + if (msg.guild) msgs.push(await msg.say('📬 Sent you a DM with information.')); return msgs; } catch { return msg.reply('Failed to send DM. You probably have DMs disabled.');