openfrontio-api-client
Preparing search index...
getPlayerInfo
Function getPlayerInfo
getPlayerInfo
(
params
:
GetPlayerInfoParams
,
)
:
Promise
<
{
createdAt
:
string
;
games
:
{
clientId
?:
string
;
difficulty
:
Difficulty
;
gameId
:
string
;
map
:
GameMapType
;
mode
:
GameMode
;
start
:
string
;
type
:
GameType
;
}
[]
;
stats
:
Partial
<
Record
<
GameType
,
Partial
<
Record
<
GameMode
,
Partial
<
Record
<
Difficulty
,
{
losses
:
bigint
;
stats
?:
{
attacks
?:
...
;
betrayals
?:
...
;
boats
?:
...
;
bombs
?:
...
;
conquests
?:
...
;
gold
?:
...
;
killedAt
?:
...
;
units
?:
...
;
}
;
total
:
bigint
;
wins
:
bigint
;
}
,
>
,
>
,
>
,
>
,
>
,
>
;
user
?:
{
avatar
:
string
|
null
;
discriminator
:
string
;
global_name
:
string
|
null
;
id
:
string
;
username
:
string
;
}
;
}
,
>
Get Player Info Retrieve information and stats for a specific player.
Parameters
params
:
GetPlayerInfoParams
Returns
Promise
<
{
createdAt
:
string
;
games
:
{
clientId
?:
string
;
difficulty
:
Difficulty
;
gameId
:
string
;
map
:
GameMapType
;
mode
:
GameMode
;
start
:
string
;
type
:
GameType
;
}
[]
;
stats
:
Partial
<
Record
<
GameType
,
Partial
<
Record
<
GameMode
,
Partial
<
Record
<
Difficulty
,
{
losses
:
bigint
;
stats
?:
{
attacks
?:
...
;
betrayals
?:
...
;
boats
?:
...
;
bombs
?:
...
;
conquests
?:
...
;
gold
?:
...
;
killedAt
?:
...
;
units
?:
...
;
}
;
total
:
bigint
;
wins
:
bigint
;
}
,
>
,
>
,
>
,
>
,
>
,
>
;
user
?:
{
avatar
:
string
|
null
;
discriminator
:
string
;
global_name
:
string
|
null
;
id
:
string
;
username
:
string
;
}
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
openfrontio-api-client
Loading...
Get Player Info Retrieve information and stats for a specific player.