Fix slash commands

This commit is contained in:
Joseph Ferano 2022-03-04 15:22:22 +07:00
parent 90f01710af
commit c2f0125fb6

View File

@ -215,10 +215,10 @@ type Store() =
// [<SlashCommand("buy-item", "Purchase an item")>] // [<SlashCommand("buy-item", "Purchase an item")>]
// member _.BuyItem (ctx : InteractionContext) = checkChannel (DiscordInteractionContext(ctx)) // member _.BuyItem (ctx : InteractionContext) = checkChannel (DiscordInteractionContext(ctx))
// //
[<SlashCommand("buy-item", "Purchase an item")>] [<SlashCommand("buy-hack", "Purchase a hack so you can take money from other Degenz")>]
member _.BuyHack (ctx : InteractionContext) = enforceChannel (DiscordInteractionContext(ctx)) (buy (Inventory.getItemsByType ItemType.Hack)) member _.BuyHack (ctx : InteractionContext) = enforceChannel (DiscordInteractionContext(ctx)) (buy (Inventory.getItemsByType ItemType.Hack))
[<SlashCommand("buy-shield", "Purchase a hack shield so you can protect your GoodBoyTokenz")>] [<SlashCommand("buy-shield", "Purchase a hack shield so you can protect your GBT")>]
member this.BuyShield (ctx : InteractionContext) = enforceChannel (DiscordInteractionContext(ctx)) (buy (Inventory.getItemsByType ItemType.Shield)) member this.BuyShield (ctx : InteractionContext) = enforceChannel (DiscordInteractionContext(ctx)) (buy (Inventory.getItemsByType ItemType.Shield))
// [<SlashCommand("buy-food", "Purchase a food item to help boost your stats")>] // [<SlashCommand("buy-food", "Purchase a food item to help boost your stats")>]