Skip to content

Commit

Permalink
style: newline object properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirasaki committed Jun 16, 2024
1 parent 7a95b4b commit 4e968b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/interactions/autocomplete/teleport-location.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ module.exports = new ComponentCommand({ run: async (client, interaction, query)
// Structuring our result for Discord's API
return queryResult
.map((e) => ({
name: e.name, value: teleportLocations.indexOf(e).toString()
name: e.name,
value: teleportLocations.indexOf(e).toString()
}))
.sort((a, b) => a.name.localeCompare(b.name));
} });

0 comments on commit 4e968b4

Please sign in to comment.