Sort listed orphans
This commit is contained in:
parent
d13a814bb6
commit
e2c3da732b
|
@ -127,6 +127,7 @@ module.exports.execute = async (interaction) => {
|
||||||
await interaction.editReply({ content: 'No orphaned extensions found!', ephemeral: true });
|
await interaction.editReply({ content: 'No orphaned extensions found!', ephemeral: true });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
orphans.sort((a, b) => Number(a.id) - Number(b.id));
|
||||||
const orphanList = orphans.map(o => `**Extension:** \`${o.id}\` - **Name:** \`${o.description}\``).join('\n');
|
const orphanList = orphans.map(o => `**Extension:** \`${o.id}\` - **Name:** \`${o.description}\``).join('\n');
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
content: `**Orphaned Extensions:**\n${orphanList}`,
|
content: `**Orphaned Extensions:**\n${orphanList}`,
|
||||||
|
|
Loading…
Reference in a new issue