From 774f5b77ec6218c30360c773b5fe6185d1efd146 Mon Sep 17 00:00:00 2001 From: Timotej Rojko <33236065+timotejroiko@users.noreply.github.com> Date: Sun, 1 Aug 2021 16:19:44 +0100 Subject: [PATCH] fix(ChannelUpdate): restore accidentally removed line (#6263) --- src/client/actions/ChannelUpdate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/actions/ChannelUpdate.js b/src/client/actions/ChannelUpdate.js index 1228eb838..06058dd86 100644 --- a/src/client/actions/ChannelUpdate.js +++ b/src/client/actions/ChannelUpdate.js @@ -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); }