Skip to content

Documentation


Documentation / @blizzard-api/classic-wow / playableRace

Function: playableRace() ​

playableRace(namespace, playableRaceId): object

Defined in: classic-wow/src/playable-race/index.ts:11

Get a playable race by ID.

Parameters ​

namespace ​

"static-classic1x" | "static-classic" | "static-classicann"

The namespace to use. See StaticClassicNamespaces.

playableRaceId ​

number

The playable race ID.

Returns ​

The playable race. See PlayableRaceResponse.

_responseType? ​

optional _responseType?: PlayableRaceResponse

Internal

The response type of the resource

namespace? ​

optional namespace?: BlizzardNamespaces

parameters? ​

optional parameters?: Record<string, unknown>

path ​

path: string

The request path. Dynamic path segments should be encoded with encodeURIComponent.