mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
fix(ChannelUpdate): restore accidentally removed line (#6263)
This commit is contained in:
@@ -15,6 +15,7 @@ class ChannelUpdateAction extends Action {
|
|||||||
if (ChannelTypes[channel.type] !== data.type) {
|
if (ChannelTypes[channel.type] !== data.type) {
|
||||||
const newChannel = Channel.create(this.client, data, channel.guild);
|
const newChannel = Channel.create(this.client, data, channel.guild);
|
||||||
for (const [id, message] of channel.messages.cache) newChannel.messages.cache.set(id, message);
|
for (const [id, message] of channel.messages.cache) newChannel.messages.cache.set(id, message);
|
||||||
|
channel = newChannel;
|
||||||
this.client.channels.cache.set(channel.id, channel);
|
this.client.channels.cache.set(channel.id, channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user