Handle multiple Autocomplete Events on the same Interaction
Okay so i am trying to handle more than one autocomplete interactions on one command>
The command looks like this:
If someone could help me on how to differentiate between those, that would be great!
20 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
^ taken from autocomplete.ts
logging focused yields:
{ value: '', type: 3, name: 'playername', focused: true }
when hovering over playername
and
{ value: '', type: 3, name: 'item', focused: true }
when hovering over item
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i am sorry about this mess but this actually works
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yea this works
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
xDDDD
nah this is insanely unreadable
i hate this code
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
but like it has to actually get the whitelist from a minecraft server because i use the whitelisted people for the autocomplete
the user experience for people using that command is insane tho. you can get the score of any player (whitelisted: autocomplete) and the scoreboards also autocomplete
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View

Unknown User•2y ago
Message Not Public
Sign In & Join Server To View


it then goes and requests the score via RCON from the server

or you can also have a leaderboard that gets generated with canvas of the top 15 players

Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
thanks 
