Send help command in current channel if the bot can't dm

This commit is contained in:
loicbersier 2019-11-09 13:37:09 +01:00
parent 5cbf213322
commit 35370fab72

View file

@ -94,7 +94,7 @@ class HelpCommand extends Command {
await message.author.send({ embed });
if (shouldReply) return message.util.reply('I\'ve sent you a DM with the command list.');
} catch (err) {
if (shouldReply) return message.util.reply('I could not send you the command list in DMs.');
if (shouldReply) return message.util.send({ embed });
}
return undefined;