From 5494f8e3bdb2e4a2aae74747797de4036a0bffa3 Mon Sep 17 00:00:00 2001 From: Dim Date: Sun, 27 May 2018 04:57:33 -0400 Subject: [PATCH] Fix: Incorrect NSFW Status on Channels (#2499) * Fix #2498 * wow this code seems familiar * please be the last iteration --- src/structures/TextChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/TextChannel.js b/src/structures/TextChannel.js index bf5d23bb0..a806b87ee 100644 --- a/src/structures/TextChannel.js +++ b/src/structures/TextChannel.js @@ -35,7 +35,7 @@ class TextChannel extends GuildChannel { * @type {boolean} * @readonly */ - this.nsfw = Boolean(data.nsfw); + this.nsfw = data.nsfw || /^nsfw(-|$)/.test(this.name); this.lastMessageID = data.last_message_id;