Method GetLuck
- Namespace
- GuildWars2.Hero.Accounts
- Assembly
- GW2SDK.dll
GetLuck(string?, MissingMemberBehavior, CancellationToken)
Retrieves the total amount of luck consumed on the account associated with the access token. This endpoint is only accessible with a valid access token.
public Task<(AccountLuck Value, MessageContext Context)> GetLuck(string? accessToken, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
accessToken
stringAn API key or subtoken.
missingMemberBehavior
MissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationToken
CancellationTokenA token to cancel the request.
Returns
- Task<(AccountLuck Value, MessageContext Context)>
A task that represents the API request.