fix(ChannelUpdate): restore accidentally removed line (#6263)

This commit is contained in:
Timotej Rojko
2021-08-01 16:19:44 +01:00
committed by GitHub
parent bb56f17760
commit 774f5b77ec

View File

@@ -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);
}