Skip to content

Connect Riot API responses with the valorant-api.com resources #11

@monkaCode

Description

@monkaCode

What do you need?

I want to fetch for example a match from the Riot API and then i want to retrieve the character from a player for example like:
`match.players[0].characterId`

But then i would only have the character Uuid and not the actual Agent class from valorant-api.com. So i would need to the following to get the Agent class instance:
`Agents.getByUuid(match.players[0].characterId)`

But this is very complicated especially if i need to access it very often. so for example every time i want to display the agent displayName i would need to type:
`Agents.getByUuid(match.players[0].characterId).displayName`

Better would be that the PlayerDto from the Riot API would have a agent property which is from the type Agent out of the valorant-api.com. This way i could access the displayName of an agent a player played like that:
`match.players[0].agent.displayName`
This is much shorter and more practical.

It would be cool to add this for every logical connection and not only the agent of course.

I would also offer my help for that, if that is needed.

Code

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions