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

merge-requests/4/head
loicbersier 5 years ago
parent 5cbf213322
commit 35370fab72

@ -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;

Loading…
Cancel
Save