Skip to content

Commit

Permalink
fix(TextChannel): remove old nsfw regex check (discordjs#3775)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotSugden authored and samsamson33 committed Feb 27, 2020
1 parent 7e8197c commit 3be1a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/TextChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class TextChannel extends GuildChannel {
* @type {boolean}
* @readonly
*/
this.nsfw = data.nsfw || /^nsfw(-|$)/.test(this.name);
this.nsfw = data.nsfw;

/**
* The ID of the last message sent in this channel, if one was sent
Expand Down

0 comments on commit 3be1a44

Please sign in to comment.