Table of Contents

Method GetColorById

Namespace
GuildWars2.Hero.Equipment.Dyes
Assembly
GW2SDK.dll

GetColorById(int, Language?, MissingMemberBehavior, CancellationToken)

Retrieves a dye color by its ID.

public Task<(DyeColor Value, MessageContext Context)> GetColorById(int colorId, Language? language = null, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)

Parameters

colorId int

The dye color ID.

language Language

The language to use for descriptions.

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<(DyeColor Value, MessageContext Context)>

A task that represents the API request.