Table of Contents

Method GetColorsByIds

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

GetColorsByIds(IEnumerable<int>, Language?, MissingMemberBehavior, CancellationToken)

Retrieves dye colors by their IDs.

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

Parameters

colorIds IEnumerable<int>

The dye color IDs.

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<(HashSet<DyeColor> Value, MessageContext Context)>

A task that represents the API request.