forked from Galactic/galactic-bot
show aliases
This commit is contained in:
parent
cfaf8da785
commit
8926733af3
@ -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(', ')
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user