👌
This commit is contained in:
parent
9f7a7c9352
commit
24a51f654f
1 changed files with 2 additions and 2 deletions
4
state.go
4
state.go
|
@ -308,10 +308,10 @@ func (s *State) ChannelAdd(channel *Channel) error {
|
||||||
|
|
||||||
// If the channel exists, replace it
|
// If the channel exists, replace it
|
||||||
if c, ok := s.channelMap[channel.ID]; ok {
|
if c, ok := s.channelMap[channel.ID]; ok {
|
||||||
if c.Messages != nil {
|
if channel.Messages == nil {
|
||||||
channel.Messages = c.Messages
|
channel.Messages = c.Messages
|
||||||
}
|
}
|
||||||
if c.PermissionOverwrites != nil {
|
if channel.PermissionOverwrites == nil {
|
||||||
channel.PermissionOverwrites = c.PermissionOverwrites
|
channel.PermissionOverwrites = c.PermissionOverwrites
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue