Method GetMapChestById
- Namespace
- GuildWars2.Pve.MapChests
- Assembly
- GuildWars2.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
mapChestIdstringThe map chest ID.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<(MapChest Value, MessageContext Context)>
A task that represents the API request.