Skip to content

Commit

Permalink
Remove legacy name-based GuildChannel#nsfw check (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC authored Mar 24, 2021
1 parent 19c1eb4 commit 7d029d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/structures/GuildChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class GuildChannel extends Channel {
if(data.parent_id !== undefined) {
this.parentID = data.parent_id;
}
this.nsfw = (this.name.length === 4 ? this.name === "nsfw" : this.name.startsWith("nsfw-")) || data.nsfw;
this.nsfw = data.nsfw;
if(data.permission_overwrites) {
this.permissionOverwrites = new Collection(PermissionOverwrite);
data.permission_overwrites.forEach((overwrite) => {
Expand Down

0 comments on commit 7d029d0

Please sign in to comment.