Skip to content

Commit

Permalink
state: Fix Ready not resetting fewMessages
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondburned committed Jun 23, 2022
1 parent faec1da commit be9de2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions state/event_dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ func (s *State) handleReady(ev *gateway.ReadyEvent) {
s.guildMutex.Lock()
defer s.guildMutex.Unlock()

for chID := range s.fewMessages {
delete(s.fewMessages, chID)
}

for _, g := range ev.Guilds {
s.unreadyGuilds[g.ID] = struct{}{}
}
Expand Down

0 comments on commit be9de2c

Please sign in to comment.