Skip to content

Commit

Permalink
Revert "fix(TextChannel): remove old nsfw regex check (discordjs#3775)"
Browse files Browse the repository at this point in the history
This reverts commit 3be1a44.
  • Loading branch information
samsamson33 authored Feb 27, 2020
1 parent fe98480 commit f61b092
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;
this.nsfw = data.nsfw || /^nsfw(-|$)/.test(this.name);

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

0 comments on commit f61b092

Please sign in to comment.