File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const (
35
35
endpointSummonerBase = endpointBase + "/summoner/v4"
36
36
endpointGetSummonerBySummonerID = endpointSummonerBase + "/summoners/%s"
37
37
endpointGetSummonerBy = endpointSummonerBase + "/summoners/by-%s/%s"
38
- endpointSpectatorBase = endpointBase + "/spectator/v4 "
38
+ endpointSpectatorBase = endpointBase + "/spectator/v5 "
39
39
endpointGetCurrentGame = endpointSpectatorBase + "/active-games/by-summoner/%s"
40
40
endpointGetFeaturedGames = endpointSpectatorBase + "/featured-games"
41
41
endpointTournamentStubBase = endpointBase + "/tournament-stub/v4"
Original file line number Diff line number Diff line change @@ -604,6 +604,7 @@ type CurrentGameParticipant struct {
604
604
Spell1ID int `json:"spell1Id"`
605
605
TeamID int `json:"teamId"`
606
606
SummonerID string `json:"summonerId"`
607
+ PUUID string `json:"puuid"`
607
608
}
608
609
609
610
// GetChampion returns the champion played by this participant
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ type SpectatorClient struct {
14
14
}
15
15
16
16
// GetCurrent returns a currently running game for a summoner
17
- func (s * SpectatorClient ) GetCurrent (summonerID string ) (* GameInfo , error ) {
17
+ func (s * SpectatorClient ) GetCurrent (puuid string ) (* GameInfo , error ) {
18
18
logger := s .logger ().WithField ("method" , "GetCurrent" )
19
19
var games GameInfo
20
- if err := s .c .GetInto (fmt .Sprintf (endpointGetCurrentGame , summonerID ), & games ); err != nil {
20
+ if err := s .c .GetInto (fmt .Sprintf (endpointGetCurrentGame , puuid ), & games ); err != nil {
21
21
logger .Debug (err )
22
22
return nil , err
23
23
}
You can’t perform that action at this time.
0 commit comments