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', { description: message.format('C_HELP_TEMPLATE', {
desc: message.format(result.description), desc: message.format(result.description),
component: result.name.toUpperCase(), component: result.name.toUpperCase(),
text: result.examples.map(ex => `\`{prefix}${result.name} ${ex}\``).join('\n') text: result.examples.map(ex => `\`{prefix}${result.type === 'command' ? result.name.toLowerCase() : `settings ${result.name.toLowerCase()}`} ${ex}\``).join('\n')
})//, }),
// fields: [ fields: [
// { {
// name: '', name: 'Aliases',
// value: message.format(result.examples) value: result.aliases.map(al => al.toLowerCase()).join(', ')
// } }
// ] ]
}); });
} }