refactor(GuildManager): Remove redundant check (#6859)

This commit is contained in:
Jiralite
2021-10-19 15:11:50 +01:00
committed by GitHub
parent 399e720b92
commit 579569ae18

View File

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