diff --git a/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/Commands.cs b/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/Commands.cs index dca19c3a4..a0b24ffe3 100644 --- a/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/Commands.cs +++ b/ArchiSteamFarm.OfficialPlugins.ItemsMatcher/Commands.cs @@ -122,7 +122,7 @@ internal static class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => ResponseMatch(Steam.Interaction.Commands.GetProxyAccess(bot, access, steamID), bot)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } diff --git a/ArchiSteamFarm.OfficialPlugins.MobileAuthenticator/Commands.cs b/ArchiSteamFarm.OfficialPlugins.MobileAuthenticator/Commands.cs index 7c05fa7ae..ee3734abf 100644 --- a/ArchiSteamFarm.OfficialPlugins.MobileAuthenticator/Commands.cs +++ b/ArchiSteamFarm.OfficialPlugins.MobileAuthenticator/Commands.cs @@ -199,7 +199,7 @@ internal static class Commands { IList results = await Utilities.InParallel(bots.Select(bot => ResponseTwoFactorFinalize(Steam.Interaction.Commands.GetProxyAccess(bot, access, steamID), bot, activationCode))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -292,7 +292,7 @@ internal static class Commands { IList results = await Utilities.InParallel(bots.Select(bot => ResponseTwoFactorFinalized(Steam.Interaction.Commands.GetProxyAccess(bot, access, steamID), bot, activationCode))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -371,7 +371,7 @@ internal static class Commands { IList results = await Utilities.InParallel(bots.Select(bot => ResponseTwoFactorInit(Steam.Interaction.Commands.GetProxyAccess(bot, access, steamID), bot))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } diff --git a/ArchiSteamFarm.sln.DotSettings b/ArchiSteamFarm.sln.DotSettings index a95d2582a..340eedb8e 100644 --- a/ArchiSteamFarm.sln.DotSettings +++ b/ArchiSteamFarm.sln.DotSettings @@ -765,6 +765,10 @@ limitations under the License. <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="T" Suffix="" Style="AaBb" /> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Private" Description="Constant fields (private)"><ElementKinds><Kind Name="CONSTANT_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"><ExtraRule Prefix="I" Suffix="" Style="AaBb" /></Policy></Policy> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Any" Description="Type parameters"><ElementKinds><Kind Name="TYPE_PARAMETER" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="T" Suffix="" Style="AaBb" /></Policy> + <Policy><Descriptor Staticness="Instance" AccessRightKinds="Private" Description="Instance fields (private)"><ElementKinds><Kind Name="FIELD" /><Kind Name="READONLY_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></Policy> + <Policy><Descriptor Staticness="Static" AccessRightKinds="Private" Description="Static fields (private)"><ElementKinds><Kind Name="FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></Policy> True OnlyMarkers @@ -812,6 +816,7 @@ limitations under the License. True True True + True True True True diff --git a/ArchiSteamFarm/Steam/Interaction/Commands.cs b/ArchiSteamFarm/Steam/Interaction/Commands.cs index 20d32256a..fa967629f 100644 --- a/ArchiSteamFarm/Steam/Interaction/Commands.cs +++ b/ArchiSteamFarm/Steam/Interaction/Commands.cs @@ -541,7 +541,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.Response2FA(GetProxyAccess(bot, access, steamID)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -583,7 +583,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.Response2FAConfirm(GetProxyAccess(bot, access, steamID), confirm))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -689,7 +689,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponseAddLicense(GetProxyAccess(bot, access, steamID), query))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -740,7 +740,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponseAdvancedLoot(GetProxyAccess(bot, access, steamID), appID, contextID))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -832,7 +832,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponseAdvancedRedeem(GetProxyAccess(bot, access, steamID), options, keys, steamID))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -921,7 +921,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponseAdvancedTransfer(GetProxyAccess(bot, access, steamID), appID, contextID, targetBot))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -955,7 +955,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseBackgroundGamesRedeemer(GetProxyAccess(bot, access, steamID))))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1032,7 +1032,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponseFarm(GetProxyAccess(bot, access, steamID)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1060,7 +1060,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseFarmingBlacklist(GetProxyAccess(bot, access, steamID))))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1124,7 +1124,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseFarmingBlacklistAdd(GetProxyAccess(bot, access, steamID), targetAppIDs)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1183,7 +1183,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseFarmingBlacklistRemove(GetProxyAccess(bot, access, steamID), targetAppIDs)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1211,7 +1211,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseFarmingQueue(GetProxyAccess(bot, access, steamID))))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1282,7 +1282,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseFarmingQueueAdd(GetProxyAccess(bot, access, steamID), targetAppIDs)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1346,7 +1346,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseFarmingQueueRemove(GetProxyAccess(bot, access, steamID), targetAppIDs)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1424,7 +1424,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseInput(GetProxyAccess(bot, access, steamID), propertyName, inputValue)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1462,7 +1462,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponseLevel(GetProxyAccess(bot, access, steamID)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1504,7 +1504,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponseLoot(GetProxyAccess(bot, access, steamID)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1565,7 +1565,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponseLootByRealAppIDs(GetProxyAccess(bot, access, steamID), realAppIDsText, exclude))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1593,7 +1593,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseMatchActivelyBlacklist(GetProxyAccess(bot, access, steamID))))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1644,7 +1644,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseMatchActivelyBlacklistAdd(GetProxyAccess(bot, access, steamID), targetAppIDs)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1695,7 +1695,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseMatchActivelyBlacklistRemove(GetProxyAccess(bot, access, steamID), targetAppIDs)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1739,7 +1739,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseNickname(GetProxyAccess(bot, access, steamID), nickname)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -1907,7 +1907,7 @@ public sealed class Commands { IList<(string? Response, Dictionary? OwnedGames)> results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponseOwns(GetProxyAccess(bot, access, steamID), query))).ConfigureAwait(false); - List<(string Response, Dictionary OwnedGames)> validResults = [..results.Where(static result => !string.IsNullOrEmpty(result.Response) && (result.OwnedGames != null))]; + List<(string Response, Dictionary OwnedGames)> validResults = [..results.Where(static result => !string.IsNullOrEmpty(result.Response) && (result.OwnedGames != null))!]; if (validResults.Count == 0) { return null; @@ -1971,7 +1971,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponsePause(GetProxyAccess(bot, access, steamID), permanent, resumeInSecondsText))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -2061,7 +2061,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponsePlay(GetProxyAccess(bot, access, steamID), targetGameIDs))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -2099,7 +2099,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponsePointsBalance(GetProxyAccess(bot, access, steamID)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -2252,7 +2252,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponsePrivacy(GetProxyAccess(bot, access, steamID), privacySettingsText))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -2532,7 +2532,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponseRedeem(GetProxyAccess(bot, access, steamID), keysText, steamID, redeemFlags))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -2570,7 +2570,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponseReset(GetProxyAccess(bot, access, steamID)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -2618,7 +2618,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseResume(GetProxyAccess(bot, access, steamID))))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -2652,7 +2652,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseStart(GetProxyAccess(bot, access, steamID))))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -2729,7 +2729,7 @@ public sealed class Commands { IList<(string? Response, Bot Bot)> results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseStatus(GetProxyAccess(bot, access, steamID))))).ConfigureAwait(false); - List<(string Response, Bot Bot)> validResults = [..results.Where(static result => !string.IsNullOrEmpty(result.Response))]; + List<(string Response, Bot Bot)> validResults = [..results.Where(static result => !string.IsNullOrEmpty(result.Response))!]; if (validResults.Count == 0) { return null; @@ -2771,7 +2771,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseStop(GetProxyAccess(bot, access, steamID))))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -2799,7 +2799,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseTradingBlacklist(GetProxyAccess(bot, access, steamID))))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -2850,7 +2850,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseTradingBlacklistAdd(GetProxyAccess(bot, access, steamID), targetSteamIDs)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -2901,7 +2901,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseTradingBlacklistRemove(GetProxyAccess(bot, access, steamID), targetSteamIDs)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -2960,7 +2960,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponseTransfer(GetProxyAccess(bot, access, steamID), botNameTo))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -3077,7 +3077,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponseTransferByRealAppIDs(GetProxyAccess(bot, access, steamID), realAppIDs, targetBot, exclude))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -3141,7 +3141,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => bot.Commands.ResponseUnpackBoosters(GetProxyAccess(bot, access, steamID)))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; } @@ -3252,7 +3252,7 @@ public sealed class Commands { IList results = await Utilities.InParallel(bots.Select(bot => Task.Run(() => bot.Commands.ResponseWalletBalance(GetProxyAccess(bot, access, steamID))))).ConfigureAwait(false); - List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))]; + List responses = [..results.Where(static result => !string.IsNullOrEmpty(result))!]; return responses.Count > 0 ? string.Join(Environment.NewLine, responses) : null; }