Fix channels inside a guild from GUILD_CREATE having a null GuildID
This commit is contained in:
parent
192bbf3da9
commit
7e7887a936
1 changed files with 5 additions and 0 deletions
5
state.go
5
state.go
|
@ -73,6 +73,11 @@ func (s *State) GuildAdd(guild *Guild) error {
|
|||
}
|
||||
}
|
||||
|
||||
// Otherwise, update the channels to point to the right guild
|
||||
for _, c := range guild.Channels {
|
||||
c.GuildID = guild.ID
|
||||
}
|
||||
|
||||
s.Guilds = append(s.Guilds, guild)
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue