1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-03-20 08:59:33 +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() s.guildMutex.Lock()
defer s.guildMutex.Unlock() defer s.guildMutex.Unlock()
for chID := range s.fewMessages {
delete(s.fewMessages, chID)
}
for _, g := range ev.Guilds { for _, g := range ev.Guilds {
s.unreadyGuilds[g.ID] = struct{}{} s.unreadyGuilds[g.ID] = struct{}{}
} }