forked from pothtonswer/discordmuffin
Set the GuildID for Members and VoiceStates on ready.
This commit is contained in:
parent
03343b41fd
commit
1bc3fb9cd7
1 changed files with 8 additions and 0 deletions
8
state.go
8
state.go
|
@ -625,6 +625,14 @@ func (s *State) onReady(se *Session, r *Ready) (err error) {
|
|||
c.GuildID = g.ID
|
||||
s.channelMap[c.ID] = c
|
||||
}
|
||||
|
||||
for _, m := range g.Members {
|
||||
m.GuildID = g.ID
|
||||
}
|
||||
|
||||
for _, vs := range g.VoiceStates {
|
||||
vs.GuildID = g.ID
|
||||
}
|
||||
}
|
||||
|
||||
for _, c := range s.PrivateChannels {
|
||||
|
|
Loading…
Reference in a new issue