mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
Fix help dm check
This commit is contained in:
@@ -58,7 +58,7 @@ module.exports = class HelpCommand extends Command {
|
|||||||
try {
|
try {
|
||||||
const msgs = [];
|
const msgs = [];
|
||||||
for (const embed of embeds) msgs.push(await msg.direct({ embeds: [embed] }));
|
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;
|
return msgs;
|
||||||
} catch {
|
} catch {
|
||||||
return msg.reply('Failed to send DM. You probably have DMs disabled.');
|
return msg.reply('Failed to send DM. You probably have DMs disabled.');
|
||||||
|
|||||||
Reference in New Issue
Block a user