mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Cats
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user