diff --git a/ArchiSteamFarm/Steam/Interaction/Actions.cs b/ArchiSteamFarm/Steam/Interaction/Actions.cs index 8e2fb34a5..f35f25127 100644 --- a/ArchiSteamFarm/Steam/Interaction/Actions.cs +++ b/ArchiSteamFarm/Steam/Interaction/Actions.cs @@ -221,7 +221,7 @@ namespace ArchiSteamFarm.Steam.Interaction { } [PublicAPI] - public async Task<(bool Success, string Message)> Play(IEnumerable gameIDs, string? gameName = null) { + public async Task<(bool Success, string Message)> Play(IReadOnlyCollection gameIDs, string? gameName = null) { if (gameIDs == null) { throw new ArgumentNullException(nameof(gameIDs)); } @@ -236,7 +236,7 @@ namespace ArchiSteamFarm.Steam.Interaction { await Bot.ArchiHandler.PlayGames(gameIDs, gameName).ConfigureAwait(false); - return (true, Strings.Done); + return (true, gameIDs.Count > 0 ? string.Format(CultureInfo.CurrentCulture, Strings.BotIdlingSelectedGames, nameof(gameIDs), string.Join(", ", gameIDs)) : Strings.Done); } [PublicAPI] diff --git a/ArchiSteamFarm/Steam/Interaction/Commands.cs b/ArchiSteamFarm/Steam/Interaction/Commands.cs index 0fb164444..18fb762a5 100644 --- a/ArchiSteamFarm/Steam/Interaction/Commands.cs +++ b/ArchiSteamFarm/Steam/Interaction/Commands.cs @@ -2888,7 +2888,7 @@ namespace ArchiSteamFarm.Steam.Interaction { return FormatBotResponse(Strings.BotNotConnected); } - (bool success, string message) = await Bot.Actions.Play(Enumerable.Empty(), Bot.BotConfig.CustomGamePlayedWhileIdle).ConfigureAwait(false); + (bool success, string message) = await Bot.Actions.Play(Array.Empty(), Bot.BotConfig.CustomGamePlayedWhileIdle).ConfigureAwait(false); return FormatBotResponse(success ? message : string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, message)); }