From bacb5d39239fce475ce887bf6d5080c3b6045f47 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Wed, 5 Jan 2022 17:54:13 +0700 Subject: [PATCH] WIP: Buttons events --- Program.fs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Program.fs b/Program.fs index 4c9039a..1cd6604 100644 --- a/Program.fs +++ b/Program.fs @@ -3,7 +3,7 @@ open System.Threading.Tasks open DSharpPlus open DSharpPlus.Entities open DSharpPlus.SlashCommands -open Microsoft.Extensions.Logging +open Emzi0767.Utilities type Move = | Rock @@ -201,6 +201,14 @@ config.Intents <- DiscordIntents.All // config.MinimumLogLevel <- LogLevel.Trace let client = new DiscordClient(config) + +client.add_ComponentInteractionCreated(AsyncEventHandler( + fun client event -> + async { + return () + } |> Async.StartAsTask + :> Task)) + let slash = client.UseSlashCommands() slash.RegisterCommands();