diff --git a/Bot/Games/Store.fs b/Bot/Games/Store.fs index ef44e20..ad7c872 100644 --- a/Bot/Games/Store.fs +++ b/Bot/Games/Store.fs @@ -129,7 +129,9 @@ let getBuyItemsEmbed storeId player (storeInventory : StoreItem list) = let inStock = item.Available && (item.Stock > 0 || item.LimitStock = false) match owned , inStock with | false , true -> DiscordButtonComponent(WeaponClass.getClassButtonColor item.Item, $"Buy-{item.Item.Id}-{storeId}", $"Buy {item.Item.Name}") - | false , false -> DiscordButtonComponent(WeaponClass.getClassButtonColor item.Item, $"Buy-{item.Item.Id}-{storeId}", $"{item.Item.Name} (Out of Stock)", true) + | false , false -> + let msg = if item.Available then "Out of Stock" else "Unavailable" + DiscordButtonComponent(WeaponClass.getClassButtonColor item.Item, $"Buy-{item.Item.Id}-{storeId}", $"{item.Item.Name} ({msg})", true) | true , _ -> match checkDoesntExceedStackCap item.Item player with | Ok _ -> DiscordButtonComponent(WeaponClass.getClassButtonColor item.Item, $"Buy-{item.Item.Id}-{storeId}", $"Buy {item.Item.Name}")