Disable whitelist
This commit is contained in:
parent
f7814b8f5c
commit
518c33d721
@ -58,10 +58,19 @@ let grantWhitelistRole isOg (ctx : IDiscordContext) =
|
|||||||
do! user.GrantRoleAsync(role)
|
do! user.GrantRoleAsync(role)
|
||||||
} :> Task
|
} :> Task
|
||||||
|
|
||||||
|
let showMessage (ctx : IDiscordContext) =
|
||||||
|
task {
|
||||||
|
let builder = DiscordInteractionResponseBuilder()
|
||||||
|
builder.IsEphemeral <- true
|
||||||
|
builder.Content <- $"🚀 __Mint Date:__ June 20th 6:30 UTC <t:1655749800:R>"
|
||||||
|
do! ctx.Respond(InteractionResponseType.ChannelMessageWithSource, builder) |> Async.AwaitTask
|
||||||
|
} : Task
|
||||||
|
|
||||||
let handleButtonEvent _ (event : ComponentInteractionCreateEventArgs) =
|
let handleButtonEvent _ (event : ComponentInteractionCreateEventArgs) =
|
||||||
let ctx = DiscordEventContext event :> IDiscordContext
|
let ctx = DiscordEventContext event :> IDiscordContext
|
||||||
match event.Id with
|
match event.Id with
|
||||||
| id when id.StartsWith("GimmeWhitelist") -> Store.buy "WHITELIST" None ctx
|
// | id when id.StartsWith("GimmeWhitelist") -> Store.buy "WHITELIST" None ctx
|
||||||
|
| id when id.StartsWith("GimmeWhitelist") -> showMessage ctx
|
||||||
| id when id.StartsWith("Buy") ->
|
| id when id.StartsWith("Buy") ->
|
||||||
task {
|
task {
|
||||||
let id = ctx.GetInteractionId()
|
let id = ctx.GetInteractionId()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user