Sort /api enum list alphabetically

8ae915517d697c184cd0ce9e05e3b88e58900fff

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/scripts/slash-commands.js+1 -1
@@ -320,7 +320,7 @@ export function initDefaultSlashCommands() {
320 SlashCommandArgument.fromProps({320 SlashCommandArgument.fromProps({
321 description: 'API to connect to',321 description: 'API to connect to',
322 typeList: [ARGUMENT_TYPE.STRING],322 typeList: [ARGUMENT_TYPE.STRING],
323 enumList: Object.entries(CONNECT_API_MAP).map(([api, { selected }]) =>323 enumList: Object.entries(CONNECT_API_MAP).sort(([a], [b]) => a.localeCompare(b)).map(([api, { selected }]) =>
324 new SlashCommandEnumValue(api, selected, enumTypes.getBasedOnIndex(UNIQUE_APIS.findIndex(x => x === selected)),324 new SlashCommandEnumValue(api, selected, enumTypes.getBasedOnIndex(UNIQUE_APIS.findIndex(x => x === selected)),
325 selected[0].toUpperCase() ?? enumIcons.default)),325 selected[0].toUpperCase() ?? enumIcons.default)),
326 }),326 }),