mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19: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];
|
explicitContentFilter = ExplicitContentFilterLevels[explicitContentFilter];
|
||||||
}
|
}
|
||||||
for (const channel of channels) {
|
for (const channel of channels) {
|
||||||
channel.type &&= ChannelTypes[channel.type.toUpperCase()];
|
|
||||||
channel.type &&= typeof channel.type === 'number' ? channel.type : ChannelTypes[channel.type];
|
channel.type &&= typeof channel.type === 'number' ? channel.type : ChannelTypes[channel.type];
|
||||||
channel.parent_id = channel.parentId;
|
channel.parent_id = channel.parentId;
|
||||||
delete channel.parentId;
|
delete channel.parentId;
|
||||||
|
|||||||
Reference in New Issue
Block a user