Method GetMapChestById
- Namespace
- GuildWars2.Pve.MapChests
- Assembly
- GW2SDK.dll
GetMapChestById(string, MissingMemberBehavior, CancellationToken)
Retrieves a map chest by its ID.
public Task<(MapChest Value, MessageContext Context)> GetMapChestById(string mapChestId, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
mapChestId
stringThe map chest ID.
missingMemberBehavior
MissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationToken
CancellationTokenA token to cancel the request.
Returns
- Task<(MapChest Value, MessageContext Context)>
A task that represents the API request.