diff --git a/ArchiSteamFarm/Steam/Interaction/Commands.cs b/ArchiSteamFarm/Steam/Interaction/Commands.cs index fd6c137edf659..b8f0185b5acc4 100644 --- a/ArchiSteamFarm/Steam/Interaction/Commands.cs +++ b/ArchiSteamFarm/Steam/Interaction/Commands.cs @@ -2784,12 +2784,14 @@ internal void OnNewLicenseList() { return FormatBotResponse(Strings.BotNotConnected); } + IList results = await Utilities.InParallel(definitionIDs.Select(Bot.Actions.RedeemPoints)).ConfigureAwait(false); + + int i = 0; + StringBuilder response = new(); foreach (uint definitionID in definitionIDs) { - EResult result = await Bot.Actions.RedeemPoints(definitionID).ConfigureAwait(false); - - response.AppendLine(FormatBotResponse(Strings.FormatBotAddLicense(definitionID, result))); + response.AppendLine(FormatBotResponse(Strings.FormatBotAddLicense(definitionID, results[i++]))); } return response.Length > 0 ? response.ToString() : null;