Skip to content

Commit

Permalink
fixed wrong guild in ghostping listener
Browse files Browse the repository at this point in the history
  • Loading branch information
zekroTJA committed Feb 1, 2019
1 parent 0bc5742 commit 4c77f67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/listeners/ghostping.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ func (l *ListenerGhostPing) Handler(s *discordgo.Session, e *discordgo.MessageCr
return
}

gpMsg, err := l.db.GetGuildGhostpingMsg(e.GuildID)
gpMsg, err := l.db.GetGuildGhostpingMsg(deletedMsg.GuildID)
if err != nil {
if !core.IsErrDatabaseNotFound(err) {
util.Log.Errorf("failed getting ghost ping msg for guild %s: %s\n", e.GuildID, err.Error())
util.Log.Errorf("failed getting ghost ping msg for guild %s: %s\n", deletedMsg.GuildID, err.Error())
}
return
}
Expand Down

0 comments on commit 4c77f67

Please sign in to comment.