Skip to content

Commit

Permalink
fix(ChannelUpdate): restore accidentally removed line (#6263)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotejroiko committed Aug 1, 2021
1 parent bb56f17 commit 774f5b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/actions/ChannelUpdate.js
Expand Up @@ -15,6 +15,7 @@ class ChannelUpdateAction extends Action {
if (ChannelTypes[channel.type] !== data.type) {
const newChannel = Channel.create(this.client, data, channel.guild);
for (const [id, message] of channel.messages.cache) newChannel.messages.cache.set(id, message);
channel = newChannel;
this.client.channels.cache.set(channel.id, channel);
}

Expand Down

0 comments on commit 774f5b7

Please sign in to comment.