1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-02-07 20:17:11 +00:00

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

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