Skip to content

Class: PartialPlace

structures/Game.PartialPlace

Hierarchy

PartialPlace

Table of contents

Constructors

Properties

Methods

Constructors

constructor

+ new PartialPlace(data: PartialPlaceOptions, client: default): PartialPlace

Parameters:

Name Type
data PartialPlaceOptions
client default

Returns: PartialPlace

Inherited from: BasePlace

Defined in: structures/Game.ts:271

Properties

client

client: default

Inherited from: BasePlace.client

Defined in: structures/Game.ts:164


id

id: number

Inherited from: BasePlace.id

Defined in: structures/Game.ts:165


name

name: null | string

Inherited from: BasePlace.name

Defined in: structures/Game.ts:166

Methods

awardBadge

awardBadge(userId: number, badgeId: number): Promise<boolean>

Parameters:

Name Type
userId number
badgeId number

Returns: Promise<boolean>

Inherited from: BasePlace

Defined in: structures/Game.ts:194


getCompatibilities

getCompatibilities(): Promise<GetPlaceCompatibilities>

Returns: Promise<GetPlaceCompatibilities>

Inherited from: BasePlace

Defined in: structures/Game.ts:174


getGameServers

getGameServers(options: Pick<GetGameServersByTypeOptions, limit | cursor | sortOrder | serverType>): Promise<GetGameServersByType>

Parameters:

Name Type
options Pick<GetGameServersByTypeOptions, limit | cursor | sortOrder | serverType>

Returns: Promise<GetGameServersByType>

Inherited from: BasePlace

Defined in: structures/Game.ts:202


getStatistics

getStatistics(options: Pick<GetPlaceStatisticsByTypeOptions, type | granularity | divisionType | startTime | endTime>): Promise<GetPlaceStatisticsByType>

Parameters:

Name Type
options Pick<GetPlaceStatisticsByTypeOptions, type | granularity | divisionType | startTime | endTime>

Returns: Promise<GetPlaceStatisticsByType>

Inherited from: BasePlace

Defined in: structures/Game.ts:187


updatePlaceConfiguration

updatePlaceConfiguration(options: { description: string ; name: string }): Promise<UpdatePlaceConfiguration>

Parameters:

Name Type
options object
options.description string
options.name string

Returns: Promise<UpdatePlaceConfiguration>

Inherited from: BasePlace

Defined in: structures/Game.ts:180