mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
fix: remove GuildChannel fallback, and remove GuildChannel as extendable (#3165)
* remake pr * typings
This commit is contained in:
@@ -116,12 +116,8 @@ class Channel extends Base {
|
||||
channel = new CategoryChannel(guild, data);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
const GuildChannel = Structures.get('GuildChannel');
|
||||
channel = new GuildChannel(guild, data);
|
||||
}
|
||||
}
|
||||
guild.channels.set(channel.id, channel);
|
||||
if (channel) guild.channels.set(channel.id, channel);
|
||||
}
|
||||
}
|
||||
return channel;
|
||||
|
||||
Reference in New Issue
Block a user