This commit is contained in:
Daniel Odendahl Jr
2017-06-09 02:11:14 +00:00
parent 1e211e918c
commit 78d6e1eed1
2 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -43,9 +43,9 @@ module.exports = class UserInfoCommand extends Command {
.addField(' Playing',
member.user.presence.game ? member.user.presence.game.name : 'None', true)
.addField(' Highest Role',
member.highestRole.name === '@everyone' ? 'No Roles' : member.highestRole.name, true)
member.highestRole.name, true)
.addField(' Hoist Role',
member.hoistRole ? member.hoistRole.name : 'None', true);
member.hoistRole ? member.hoistRole.name : 'Not Hoisted', true);
return msg.embed(embed);
}
};
+6 -2
View File
@@ -1,5 +1,6 @@
const Command = require('../../structures/Command');
const { RichEmbed } = require('discord.js');
const { stripIndents } = require('common-tags');
module.exports = class HelpCommand extends Command {
constructor(client) {
@@ -30,7 +31,10 @@ module.exports = class HelpCommand extends Command {
if (commands.length === 1) {
const embed = new RichEmbed()
.setTitle(`Command ${commands[0].name}`)
.setDescription(commands[0].description)
.setDescription(stripIndents`
${commands[0].description}
${commands[0].details || ''}
`)
.addField(' Format',
msg.anyUsage(`${commands[0].name} ${commands[0].format ? commands[0].format : ''}`))
.addField(' Aliases',
@@ -41,7 +45,7 @@ module.exports = class HelpCommand extends Command {
} else if (commands.length > 1) {
return msg.say(`Multiple commands found, please be more specific: ${commands.map((c) => c.name).join(', ')}`);
} else {
return msg.say(`Could not identify command. Use \`${msg.usage(null)}\` to view a list of commands.`);
return msg.say(`Could not identify command. Use ${msg.usage(null)} to view a list of commands.`);
}
} else {
const embed = new RichEmbed()