update
This commit is contained in:
parent
62966c9893
commit
5651744445
1 changed files with 12 additions and 11 deletions
|
@ -14,7 +14,9 @@ module.exports = (commands, prefix) => {
|
||||||
|
|
||||||
const commandsArr = [];
|
const commandsArr = [];
|
||||||
|
|
||||||
commands.filter(cmd => cmd.category === category).map(cmd => {
|
commands
|
||||||
|
.filter(cmd => cmd.category === category)
|
||||||
|
.map(cmd => {
|
||||||
const obj = {
|
const obj = {
|
||||||
commandName: cmd.name,
|
commandName: cmd.name,
|
||||||
commandUsage: `${cmd.usage ? cmd.usage : `${prefix}${cmd.name}`}`,
|
commandUsage: `${cmd.usage ? cmd.usage : `${prefix}${cmd.name}`}`,
|
||||||
|
@ -24,7 +26,6 @@ module.exports = (commands, prefix) => {
|
||||||
commandsArr.push(obj);
|
commandsArr.push(obj);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
const categoryObj = {
|
const categoryObj = {
|
||||||
categoryId: category,
|
categoryId: category,
|
||||||
category: `${capitalizeFirstLetter(category)}`,
|
category: `${capitalizeFirstLetter(category)}`,
|
||||||
|
|
Loading…
Reference in a new issue