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 });
|
||||
return;
|
||||
}
|
||||
orphans.sort((a, b) => Number(a.id) - Number(b.id));
|
||||
const orphanList = orphans.map(o => `**Extension:** \`${o.id}\` - **Name:** \`${o.description}\``).join('\n');
|
||||
await interaction.editReply({
|
||||
content: `**Orphaned Extensions:**\n${orphanList}`,
|
||||
|
|
Loading…
Reference in a new issue