This commit is contained in:
Ryan Cao 2022-06-08 14:25:24 +08:00
parent ea11dbba01
commit c282448d5b
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F
12 changed files with 20 additions and 19 deletions

View file

@ -9,10 +9,12 @@ export const cmd: Command = {
const embed = new MessageEmbed()
.setTitle('Help Menu')
.setColor('DARK_GREEN');
let comman = commands;
const comman = commands;
comman.sort((x, y) => {
return x.name == 'help' ? -1 : y.name == 'help' ? 1 : 0;
});
for (const i in comman) {
const cmd = comman[i];
const resp = [];
@ -27,6 +29,7 @@ export const cmd: Command = {
}
embed.addField('!' + cmd.name, resp.join('\n'));
}
return e.reply({ embeds: [embed] });
},
};