diff --git a/index.mjs b/index.mjs index 43e2c82..c768898 100644 --- a/index.mjs +++ b/index.mjs @@ -35,12 +35,20 @@ let val = await rAPI.summoner }) .then(({ name, puuid }) => ({ name, puuid })); -const ice = await rAPI.summoner - .getBySummonerName({ - region: PlatformId.NA1, - summonerName: "IcePhoenix05", +// const ice = await rAPI.summoner +// .getBySummonerName({ +// region: PlatformId.NA1, +// summonerName: "IcePhoenix05", +// }) +// .then(({ name, puuid }) => ({ name, puuid })); + +const ice = await rAPI.account + .getByRiotId({ + region: PlatformId.AMERICAS, + gameName: "Heartsii", + tagLine: "0000", }) - .then(({ name, puuid }) => ({ name, puuid })); + .then(({ puuid }) => ({ puuid })); const valGameIds = await get_games_by_puuid(val.puuid); const iceGamesIds = await get_games_by_puuid(ice.puuid);