Skip to content

Commit

Permalink
fix: bug resolving specified teleport location
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirasaki committed Jun 8, 2024
1 parent 515b90e commit 7a95b4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interactions/autocomplete/teleport-location.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ module.exports = new ComponentCommand({ run: async (client, interaction, query)

// Structuring our result for Discord's API
return queryResult
.map((e, ind) => ({
name: e.name, value: ind.toString()
.map((e) => ({
name: e.name, value: teleportLocations.indexOf(e).toString()
}))
.sort((a, b) => a.name.localeCompare(b.name));
} });

0 comments on commit 7a95b4b

Please sign in to comment.