show aliases

This commit is contained in:
Erik 2020-05-24 01:10:10 +03:00
parent cfaf8da785
commit 8926733af3

View File

@ -31,14 +31,14 @@ class HelpCommand extends Command {
description: message.format('C_HELP_TEMPLATE', {
desc: message.format(result.description),
component: result.name.toUpperCase(),
text: result.examples.map(ex => `\`{prefix}${result.name} ${ex}\``).join('\n')
})//,
// fields: [
// {
// name: '',
// value: message.format(result.examples)
// }
// ]
text: result.examples.map(ex => `\`{prefix}${result.type === 'command' ? result.name.toLowerCase() : `settings ${result.name.toLowerCase()}`} ${ex}\``).join('\n')
}),
fields: [
{
name: 'Aliases',
value: result.aliases.map(al => al.toLowerCase()).join(', ')
}
]
});
}