state: Fix Ready not resetting fewMessages

This commit is contained in:
diamondburned 2022-06-23 00:09:20 -07:00
parent faec1da257
commit be9de2c165
No known key found for this signature in database
GPG Key ID: D78C4471CE776659
1 changed files with 4 additions and 0 deletions

View File

@ -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{}{}
}