Skip to content

Commit

Permalink
refactor(GuildManager): Remove redundant check (#6859)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Oct 19, 2021
1 parent 399e720 commit 579569a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/managers/GuildManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 579569a

Please sign in to comment.