krapio
Library referenceClasses

PublicClansApi

GET /clans/*: clan profiles, loot config, motd and the recruitment board

Constructors

Constructor

new PublicClansApi(gapi): PublicClansApi;

Parameters

ParameterType
gapiKrunkerClient

Returns

PublicClansApi

Methods

byName()

byName(clanName): Promise<ClanPublicProfile>;

GET /clans/by-name/:name, case-insensitive, the roster has no player ids

Parameters

ParameterType
clanNamestring

Returns

Promise<ClanPublicProfile>


lootConfig()

lootConfig(clanId): Promise<ClanLootConfig>;

GET /clans/:id/loot-config, the turf payout rule

Parameters

ParameterType
clanIdnumber

Returns

Promise<ClanLootConfig>


motd()

motd(clanId): Promise<ClanMotd>;

GET /clans/:id/motd

Parameters

ParameterType
clanIdnumber

Returns

Promise<ClanMotd>


profile()

profile(clanId): Promise<ClanPublicProfile>;

GET /clans/:id/profile, same reply by id

Parameters

ParameterType
clanIdnumber

Returns

Promise<ClanPublicProfile>


recruitment()

recruitment(clanId): Promise<RecruitmentPost>;

GET /clans/:id/recruitment, the clan's own board post

Parameters

ParameterType
clanIdnumber

Returns

Promise<RecruitmentPost>


recruitmentBoard()

recruitmentBoard(query?): Promise<RecruitmentBoard>;

GET /clans/recruitment, the recruitment board

Parameters

ParameterType
query?RecruitmentQuery

Returns

Promise<RecruitmentBoard>

On this page