handled errors

This commit is contained in:
semblanceofsense 2025-02-16 21:53:36 -07:00
parent 6cea2789ef
commit 54cd7a4f52

View File

@ -106,6 +106,7 @@ func Run(BotToken string) {
responseData = err.Error() responseData = err.Error()
} }
} }
}
if responseData != "" { if responseData != "" {
err = s.InteractionRespond( err = s.InteractionRespond(
i.Interaction, i.Interaction,
@ -119,7 +120,7 @@ func Run(BotToken string) {
) )
} }
} }
}}) })
discord.AddHandler(func ( discord.AddHandler(func (
s *discordgo.Session, s *discordgo.Session,