-
Hey guys, im writing here cause i tghink is a place where other people may achived this. I want to be able to pre pick, in the messages i have been sniffing on the websocket i think they call pickIntent. Does anybody have any idea of this? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I've not worked with the Champion Select APIs in a while myself, but I'll keep this open for anyone else who might know something :) |
Beta Was this translation helpful? Give feedback.
-
{
"championId": ID_OF_THE_CHAMPION_YOU_WANT_TO_PICK
}
|
Beta Was this translation helpful? Give feedback.
-
ps if you still cant figure it out, i have a repo with the solution in it ;) @RenzoBeux |
Beta Was this translation helpful? Give feedback.
-
Hi! Thank you very much! Not needed, I understood perfectly what you explained. |
Beta Was this translation helpful? Give feedback.
GET all championSelect data "/lol-champ-select/v1/session"
loop through all the actions, then loop through all the pairs in the actions
when you have an action it hold this data: championId, completed, id, isAllyAction, isInProgress, pickTurn, type, actorCellId. (im not explaining that)
when you have confirm that the action is you, the action is not completed and the type is "pick"
just send a PATCH request to "/lol-champ-select/v1/session/actions/${actionID}" where action id is the id of the action we just got.
make sure to send a body wich contains: