Fix help dm check

This commit is contained in:
Dragon Fire
2024-04-28 18:24:47 -04:00
parent 442ad1bd97
commit e15c7e0cf4
+1 -1
View File
@@ -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.');