Table of Contents

Method GetCatById

Namespace
GuildWars2.Pve.Home
Assembly
GW2SDK.dll

GetCatById(int, MissingMemberBehavior, CancellationToken)

Retrieves a home cat by its ID.

public Task<(Cat Value, MessageContext Context)> GetCatById(int catId, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)

Parameters

catId int

The cat ID.

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<(Cat Value, MessageContext Context)>

A task that represents the API request.