From 7328a0139e6126bb579f2da18a003833fd9d1c32 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Tue, 22 Oct 2024 11:49:33 -0600 Subject: [PATCH] Made errors send ephemeral messages --- command/markov.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command/markov.go b/command/markov.go index 8493bd2..6ad795c 100644 --- a/command/markov.go +++ b/command/markov.go @@ -81,6 +81,7 @@ func MarkovCommand(s *discordgo.Session, i *discordgo.InteractionCreate) { Content: newMessage, }, }) + if err != nil { log.Printf("Error responding to interaction: %v", err) return @@ -139,6 +140,7 @@ func respondWithError(s *discordgo.Session, i *discordgo.InteractionCreate, mess Type: discordgo.InteractionResponseChannelMessageWithSource, Data: &discordgo.InteractionResponseData{ Content: message, + Flags: discordgo.MessageFlagsEphemeral, }, }) if err != nil {