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:
parent
faec1da257
commit
be9de2c165
|
@ -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{}{}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue