Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/steamy/Dota2/mod.ts>getMatchDetails_Result

Steamy is a library made to help interact with Valve's REST APIs for their various games and services by providing easy asynchronous functions to call them, along with a key manager, and type checking to boot.
Latest
interface getMatchDetails_Result
import { type getMatchDetails_Result } from "https://deno.land/x/steamy@v0.05a/Dota2/mod.ts";

Properties

List of players in the match

season: number

The season the game was played in

radiant_win: boolean

Dictates the winner of the match, true for radiant; false for dire

duration: number

The length of the match, in seconds since the match began

pre_game_duration: number

?

start_time: number

Unix timestamp of when the match began

match_id: number

The match's unique ID

match_seq_num: number

A 'sequence number', representing the order in which matches were recorded

tower_status_radiant: number

See #Tower Status below

tower_status_dire: number

See #Tower Status below

barracks_status_radiant: number

See #Barracks Status below

barracks_status_dire: number

See #Barracks Status below

cluster: number

The server cluster the match was played upon. Used for downloading replays of matches. Can be translated to region using dota constants (https://github.com/odota/dotaconstants)

first_blood_time: number

The time in seconds since the match began when first-blood occurred

lobby_type: LobbyType

-1 - Invalid 0 - Public matchmaking 1 - Practise 2 - Tournament 3 - Tutorial 4 - Co-op with bots. 5 - Team match 6 - Solo Queue 7 - Ranked 8 - 1v1 Mid

human_players: number

The number of human players within the match

leagueid: number

The league that this match was a part of. A list of league IDs can be found via the GetLeagueListing method

positive_votes: number

The number of thumbs-up the game has received by users

negative_votes: number

The number of thumbs-down the game has received by users

game_mode: GameMode

0 - None 1 - All Pick 2 - Captain's Mode 3 - Random Draft 4 - Single Draft 5 - All Random 6 - Intro 7 - Diretide 8 - Reverse Captain's Mode 9 - The Greeviling 10 - Tutorial 11 - Mid Only 12 - Least Played 13 - New Player Pool 14 - Compendium Matchmaking 15 - Co-op vs Bots 16 - Captains Draft 18 - Ability Draft 20 - All Random Deathmatch 21 - 1v1 Mid Only 22 - Ranked Matchmaking 23 - Turbo Mode

picks_bans: { hero_id: HeroID; team: number; order: number; is_pick: number; }[]

A list of picks and bans in the match, including the order and the hero ID

engine: Engine

0 - Source 1 1 - Source 2

radiant_score: number

Radiant kills

dire_score: number

Dire kills