Method GetAchievementById
- Namespace
- GuildWars2.Hero.Achievements
- Assembly
- GuildWars2.dll
GetAchievementById(int, Language?, MissingMemberBehavior, CancellationToken)
Retrieves an achievement by its ID.
public Task<(Achievement Value, MessageContext Context)> GetAchievementById(int achievementId, Language? language = null, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
achievementIdintThe achievement ID.
languageLanguageThe language to use for descriptions.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<(Achievement Value, MessageContext Context)>
A task that represents the API request.