From 07c0e8016d0b80079038e4b72a7da1e43b724018 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 20 Jul 2022 21:12:12 +0300 Subject: [PATCH] sort settings --- src/structure/components/commands/administration/Settings.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/structure/components/commands/administration/Settings.js b/src/structure/components/commands/administration/Settings.js index 2f4efad..25008f6 100644 --- a/src/structure/components/commands/administration/Settings.js +++ b/src/structure/components/commands/administration/Settings.js @@ -52,6 +52,7 @@ class SettingsCommand extends SlashCommand { inline: true }); + embed.fields.sort((a, b) => b.value.length - a.value.length); return invoker.reply({ embeds: [embed] }); }