Merge pull request #142 from iopred/develop
Set GuildID on all channels in READY.
This commit is contained in:
commit
512257a328
1 changed files with 7 additions and 0 deletions
7
state.go
7
state.go
|
@ -40,6 +40,13 @@ func (s *State) OnReady(r *Ready) error {
|
|||
defer s.Unlock()
|
||||
|
||||
s.Ready = *r
|
||||
|
||||
for _, g := range s.Guilds {
|
||||
for _, c := range g.Channels {
|
||||
c.GuildID = g.ID
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue