Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
bwmarrin committed Apr 12, 2016
2 parents 12b0100 + 6abc247 commit 3ecffcd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion state.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,17 @@ func (s *State) OnReady(r *Ready) error {
s.Ready = *r

for _, g := range s.Guilds {
s.guildMap[g.ID] = g

for _, c := range g.Channels {
c.GuildID = g.ID

s.channelMap[c.ID] = c
}
}

s.guildMap[g.ID] = g
for _, c := range s.PrivateChannels {
s.channelMap[c.ID] = c
}

return nil
Expand Down

0 comments on commit 3ecffcd

Please sign in to comment.