Only DM help list

master
GreenXenith 2020-03-18 15:01:09 -07:00
parent fcff274a19
commit 43166692db
1 changed files with 11 additions and 7 deletions

View File

@ -73,12 +73,16 @@ module.exports = {
},
};
return message.author.send({embed: embed}).then(() => {
if (message.channel.type === "dm") return;
message.reply("I\'ve sent you a DM with all my commands.");
}).catch(error => {
console.error(`Could not send help DM to ${message.author.tag}.\n`, error);
message.reply("help DM couldn't be sent, do you have DMs disabled?");
});
if (args.length) {
message.channel.send({embed: embed});
} else {
return message.author.send({embed: embed}).then(() => {
if (message.channel.type === "dm") return;
message.reply("I\'ve sent you a DM with all my commands.");
}).catch(error => {
console.error(`Could not send help DM to ${message.author.tag}.\n`, error);
message.reply("help DM couldn't be sent, do you have DMs disabled?");
});
}
},
};