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', {
|
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(', ')
|
||||||
// }
|
}
|
||||||
// ]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user