Closed chaitanya-codes closed 3 years ago
Hey, thanks for the report. I received currently many bugs because of the Recode I made a couple weeks ago. I will take a look at it after breakfast :)
@ExceedFlame Bug is fixed, really bad mistake on my side. The reason why sometimes hasWon is null is, because it is deathmatch, where is no team winner, just an individual one
Oh, thank you
I also wanted to ask how can I get the weapon name by the damage_weapon_id
(got from rounds[0].player_stats[0].kill_events.damage_weapon_id
.
U can use https://valorant-api.com/v1/weapons/{damage_weapon_id}, probably will add the name in the future as a new json object. Here is also a list of all weopons with their ids
const weapons = { "63e6c2b6-4a8e-869c-3d4c-e38355226584": "Odin", "55d8a0f4-4274-ca67-fe2c-06ab45efdf58": "Ares", "9c82e19d-4575-0200-1a81-3eacf00cf872": "Vandal", "ae3de142-4d85-2547-dd26-4e90bed35cf7": "Bulldog", "ee8e8d15-496b-07ac-e5f6-8fae5d4c7b1a": "Phantom", "ec845bf4-4f79-ddda-a3da-0db3774b2794": "Judge", "910be174-449b-c412-ab22-d0873436b21b": "Bucky", "44d4e95c-4157-0037-81b2-17841bf2e8e3": "Frenzy", "29a0cfab-485b-f5d5-779a-b59f85e204a8": "Classic", "1baa85b4-4c70-1284-64bb-6481dfc3bb4e": "Ghost", "e336c6b8-418d-9340-d77f-7a9e4cfe0702": "Sheriff", "42da8ccc-40d5-affc-beec-15aa47b42eda": "Shorty", "a03b24d3-4319-996d-0f8c-94bbfba1dfc7": "Operator", "4ade7faa-4cf1-8376-95ef-39884480959b": "Guardian", "c4883e50-4494-202c-3ec3-6b8a9284f00b": "Marshal", "462080d1-4035-2937-7c09-27aa2a5c27a7": "Spectre", "f7e1b454-4ad4-1063-ec0a-159e56b58941": "Stinger", "2f59173c-4bed-b6c3-2191-dea9b58be9c7": "Melee" }
Ok. Thank you so much
URL with my user & tag: https://api.henrikdev.xyz/valorant/v3/matches/ap/exceedflame/jett
Also, another bug, for
/valorant/v3/matches/
,data[1].match.teams.blue.has_won
most of the time returnsnull
onlydata[0].match.teams.blue.has_won
returns a Boolean but other matches in data[] don't