public static Task HandleAchievementListMessage(Account account, AchievementListMessage message) => Task.Run(async() => { if (!account.Configuration.AcceptAchievements) { return; } foreach (var achiv in message.RewardableAchievements) { await account.Network.SendMessageAsync(new AchievementRewardRequestMessage((int)achiv.Id)); } });
private void AchievementListMessageHandler(DofusClient client, AchievementListMessage message) { // }