Made errors send ephemeral messages
This commit is contained in:
parent
b00028d8e3
commit
7328a0139e
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue