diff --git a/BoosterManager/Handlers/GemHandler.cs b/BoosterManager/Handlers/GemHandler.cs index 77b3e23..7a07e79 100644 --- a/BoosterManager/Handlers/GemHandler.cs +++ b/BoosterManager/Handlers/GemHandler.cs @@ -14,7 +14,7 @@ internal static class GemHandler { internal static async Task GetGemCount(Bot bot) { HashSet inventory; try { - inventory = await bot.ArchiHandler.GetMyInventoryAsync().Where(item => ItemIdentifier.GemAndSackIdentifier.IsItemMatch(item)).ToHashSetAsync().ConfigureAwait(false); + inventory = await bot.ArchiWebHandler.GetInventoryAsync().Where(item => ItemIdentifier.GemAndSackIdentifier.IsItemMatch(item)).ToHashSetAsync().ConfigureAwait(false); } catch (Exception e) { bot.ArchiLogger.LogGenericException(e); return Commands.FormatBotResponse(bot, ArchiSteamFarm.Localization.Strings.WarningFailed); @@ -53,7 +53,7 @@ internal static async Task GetGemCount(Bot bot) { internal static async Task UnpackGems(Bot bot) { HashSet sacks; try { - sacks = await bot.ArchiHandler.GetMyInventoryAsync().Where(item => ItemIdentifier.SackIdentifier.IsItemMatch(item) && (BoosterHandler.AllowCraftUntradableBoosters || item.Tradable)).ToHashSetAsync().ConfigureAwait(false); + sacks = await bot.ArchiWebHandler.GetInventoryAsync().Where(item => ItemIdentifier.SackIdentifier.IsItemMatch(item) && (BoosterHandler.AllowCraftUntradableBoosters || item.Tradable)).ToHashSetAsync().ConfigureAwait(false); } catch (Exception e) { bot.ArchiLogger.LogGenericException(e); return Commands.FormatBotResponse(bot, ArchiSteamFarm.Localization.Strings.WarningFailed); diff --git a/BoosterManager/Handlers/InventoryHandler.cs b/BoosterManager/Handlers/InventoryHandler.cs index b389606..290bd8d 100644 --- a/BoosterManager/Handlers/InventoryHandler.cs +++ b/BoosterManager/Handlers/InventoryHandler.cs @@ -15,7 +15,7 @@ internal static async Task SendItemToMultipleBots(Bot sender, List<(Bot HashSet itemStacks; try { - itemStacks = await sender.ArchiHandler.GetMyInventoryAsync(appID: appID, contextID: contextID).Where(item => item.Tradable && itemIdentifier.IsItemMatch(item)).ToHashSetAsync().ConfigureAwait(false); + itemStacks = await sender.ArchiWebHandler.GetInventoryAsync(appID: appID, contextID: contextID).Where(item => item.Tradable && itemIdentifier.IsItemMatch(item)).ToHashSetAsync().ConfigureAwait(false); } catch (Exception e) { sender.ArchiLogger.LogGenericException(e); return Commands.FormatBotResponse(sender, ArchiSteamFarm.Localization.Strings.WarningFailed); @@ -80,7 +80,7 @@ internal static async Task SendMultipleItemsToMultipleBots(Bot sender, H HashSet inventory; try { - inventory = await sender.ArchiHandler.GetMyInventoryAsync(appID: appID, contextID: contextID).ToHashSetAsync().ConfigureAwait(false); + inventory = await sender.ArchiWebHandler.GetInventoryAsync(appID: appID, contextID: contextID).ToHashSetAsync().ConfigureAwait(false); } catch (Exception e) { sender.ArchiLogger.LogGenericException(e); return Commands.FormatBotResponse(sender, ArchiSteamFarm.Localization.Strings.WarningFailed);