From ae18b594c97782cc201ffa365f12064831b1ec93 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Thu, 11 Jan 2024 20:42:57 -0500 Subject: Handle stickers, properly handle exceptions in threads --- deps/discord-haskell/examples/interaction-commands.hs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'deps/discord-haskell/examples/interaction-commands.hs') diff --git a/deps/discord-haskell/examples/interaction-commands.hs b/deps/discord-haskell/examples/interaction-commands.hs index 7d22825..50e0b1d 100644 --- a/deps/discord-haskell/examples/interaction-commands.hs +++ b/deps/discord-haskell/examples/interaction-commands.hs @@ -54,15 +54,11 @@ interactionCommandExample = do -- Use place to execute commands you know you want to complete startHandler :: GuildId -> DiscordHandler () startHandler testserverid = do - let activity = - def - { activityName = "ping-pong", - activityType = ActivityTypeGame - } + let activity = mkActivity "interaction-commands" ActivityTypeGame let opts = UpdateStatusOpts { updateStatusOptsSince = Nothing, - updateStatusOptsGame = Just activity, + updateStatusOptsActivities = [activity], updateStatusOptsNewStatus = UpdateStatusOnline, updateStatusOptsAFK = False } @@ -394,7 +390,7 @@ eventHandler testserverid event = case event of void ( do exampleImage <- liftIO getImage - aid <- readCache <&> cacheApplication <&> partialApplicationID + aid <- readCache <&> cacheApplication <&> fullApplicationID _ <- restCall (R.CreateInteractionResponse interactionId interactionToken InteractionResponseDeferChannelMessage) restCall ( R.CreateFollowupInteractionMessage -- cgit v1.2.3