Closed musnows closed 2 years ago
I found out that if I set a region.It will return a err
now it works well,I don't know why
client = valorant.Client(KEY, locale=None,region='ap',route='asia')
lb = client.get_leaderboard(size=sz)
players = lb.players.get_all(numberOfWins=num)
cm = CardMessage()
for p in lb.players:
c1.append(Module.Section(f"#{p.leaderboardRank} - {p.gameName} ({p.numberOfWins} wins)"))
#print(f"#{p.leaderboardRank} - {p.gameName} ({p.numberOfWins} wins)")
cm.append(c1)
await msg.reply(cm)
I'm using this command for a bot,but err occurred like this
region="eu"
also time out.Is this a normal Internet connection err? my api key isn't invalidAnd this function works well