Add second store to jpegs

This commit is contained in:
Joseph Ferano 2022-05-11 21:13:43 +07:00
parent 03ffe4d4a4
commit 9bd50db381

View File

@ -347,6 +347,7 @@ let handleJpegEvents _ (event : ComponentInteractionCreateEventArgs) =
match id with match id with
| id when id.StartsWith("Buy") -> handleBuyItem ctx itemId | id when id.StartsWith("Buy") -> handleBuyItem ctx itemId
| id when id.StartsWith("ShowJpegStore") -> buy storeId None ctx | id when id.StartsWith("ShowJpegStore") -> buy storeId None ctx
| id when id.StartsWith("ShowRaffleStore") -> buy storeId None ctx
| id when id.StartsWith("ShowJpegInventory") -> showJpegsEmbed ctx | id when id.StartsWith("ShowJpegInventory") -> showJpegsEmbed ctx
| _ -> | _ ->
task { task {
@ -386,9 +387,10 @@ let sendBackalleyEmbed (ctx : IDiscordContext) =
embed.Color <- DiscordColor.Black embed.Color <- DiscordColor.Black
embed.Description <- "Hey, what do you want kid?" embed.Description <- "Hey, what do you want kid?"
builder.AddEmbed embed |> ignore builder.AddEmbed embed |> ignore
let button1 = DiscordButtonComponent(ButtonStyle.Success, $"ShowJpegStore-0-BACKALLEY", $"NFT Raffles") :> DiscordComponent let button1 = DiscordButtonComponent(ButtonStyle.Success, $"ShowJpegStore-0-BACKALLEY1", $"NFT Raffles") :> DiscordComponent
let button2 = DiscordButtonComponent(ButtonStyle.Primary, $"ShowJpegInventory-0-BACKALLEY", $"View My Stash") :> DiscordComponent let button2 = DiscordButtonComponent(ButtonStyle.Success, $"ShowRaffleStore-0-BACKALLEY2", $"USDT Raffles") :> DiscordComponent
builder.AddComponents [| button1 ; button2 |] |> ignore let button3 = DiscordButtonComponent(ButtonStyle.Primary, $"ShowJpegInventory-0-0", $"View My Stash") :> DiscordComponent
builder.AddComponents [| button1 ; button2 ; button3 |] |> ignore
do! GuildEnvironment.botClientJpeg.Value.SendMessageAsync(channel, builder) do! GuildEnvironment.botClientJpeg.Value.SendMessageAsync(channel, builder)
|> Async.AwaitTask |> Async.AwaitTask