State: Fixed Discord not setting GuildID for Ready.Guild.Channels
This commit is contained in:
parent
64c6ca7916
commit
53c1ea0f0d
|
@ -333,7 +333,11 @@ func handleGuildCreate(store Store, guild *gateway.GuildCreateEvent) []error {
|
|||
|
||||
// Handle guild channels
|
||||
for i := range guild.Channels {
|
||||
if err := store.ChannelSet(&guild.Channels[i]); err != nil {
|
||||
// I HATE Discord.
|
||||
ch := guild.Channels[i]
|
||||
ch.GuildID = guild.ID
|
||||
|
||||
if err := store.ChannelSet(&ch); err != nil {
|
||||
error(err, "failed to set guild channel in Ready")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue