mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
refactor(GuildManager): Remove redundant check (#6859)
This commit is contained in:
@@ -189,7 +189,6 @@ class GuildManager extends CachedManager {
|
||||
explicitContentFilter = ExplicitContentFilterLevels[explicitContentFilter];
|
||||
}
|
||||
for (const channel of channels) {
|
||||
channel.type &&= ChannelTypes[channel.type.toUpperCase()];
|
||||
channel.type &&= typeof channel.type === 'number' ? channel.type : ChannelTypes[channel.type];
|
||||
channel.parent_id = channel.parentId;
|
||||
delete channel.parentId;
|
||||
|
||||
Reference in New Issue
Block a user