Skip to content

Commit

Permalink
improve on message editr error
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada committed Apr 1, 2024
1 parent d58ad3f commit 104b76e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/bot/main.go
Expand Up @@ -456,7 +456,7 @@ func (a *App) onMessage(s *discordgo.Session, m *discordgo.MessageCreate) {
func (a *App) onMessageEdited(s *discordgo.Session, m *discordgo.MessageUpdate) {
messageContent, authorID, err := getMessageFromDatabase(m.ID)
if err != nil {
fmt.Println("on message edit: Error getting full message:", err)
fmt.Printf("on message edit: Error getting full message '%s': %s\n", m.ID, err)
return
}
targetChannel := serverconfig.Get(m.GuildID, "channel:action-log")
Expand Down

0 comments on commit 104b76e

Please sign in to comment.