mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
Cats
This commit is contained in:
@@ -43,9 +43,9 @@ module.exports = class UserInfoCommand extends Command {
|
|||||||
.addField('❯ Playing',
|
.addField('❯ Playing',
|
||||||
member.user.presence.game ? member.user.presence.game.name : 'None', true)
|
member.user.presence.game ? member.user.presence.game.name : 'None', true)
|
||||||
.addField('❯ Highest Role',
|
.addField('❯ Highest Role',
|
||||||
member.highestRole.name === '@everyone' ? 'No Roles' : member.highestRole.name, true)
|
member.highestRole.name, true)
|
||||||
.addField('❯ Hoist Role',
|
.addField('❯ Hoist Role',
|
||||||
member.hoistRole ? member.hoistRole.name : 'None', true);
|
member.hoistRole ? member.hoistRole.name : 'Not Hoisted', true);
|
||||||
return msg.embed(embed);
|
return msg.embed(embed);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
const Command = require('../../structures/Command');
|
const Command = require('../../structures/Command');
|
||||||
const { RichEmbed } = require('discord.js');
|
const { RichEmbed } = require('discord.js');
|
||||||
|
const { stripIndents } = require('common-tags');
|
||||||
|
|
||||||
module.exports = class HelpCommand extends Command {
|
module.exports = class HelpCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
@@ -30,7 +31,10 @@ module.exports = class HelpCommand extends Command {
|
|||||||
if (commands.length === 1) {
|
if (commands.length === 1) {
|
||||||
const embed = new RichEmbed()
|
const embed = new RichEmbed()
|
||||||
.setTitle(`Command ${commands[0].name}`)
|
.setTitle(`Command ${commands[0].name}`)
|
||||||
.setDescription(commands[0].description)
|
.setDescription(stripIndents`
|
||||||
|
${commands[0].description}
|
||||||
|
${commands[0].details || ''}
|
||||||
|
`)
|
||||||
.addField('❯ Format',
|
.addField('❯ Format',
|
||||||
msg.anyUsage(`${commands[0].name} ${commands[0].format ? commands[0].format : ''}`))
|
msg.anyUsage(`${commands[0].name} ${commands[0].format ? commands[0].format : ''}`))
|
||||||
.addField('❯ Aliases',
|
.addField('❯ Aliases',
|
||||||
@@ -41,7 +45,7 @@ module.exports = class HelpCommand extends Command {
|
|||||||
} else if (commands.length > 1) {
|
} else if (commands.length > 1) {
|
||||||
return msg.say(`Multiple commands found, please be more specific: ${commands.map((c) => c.name).join(', ')}`);
|
return msg.say(`Multiple commands found, please be more specific: ${commands.map((c) => c.name).join(', ')}`);
|
||||||
} else {
|
} 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 {
|
} else {
|
||||||
const embed = new RichEmbed()
|
const embed = new RichEmbed()
|
||||||
|
|||||||
Reference in New Issue
Block a user