Fix: Incorrect NSFW Status on Channels (#2499)

* Fix #2498

* wow this code seems familiar

* please be the last iteration
This commit is contained in:
Dim
2018-05-27 04:57:33 -04:00
committed by Isabella
parent fc81924724
commit 5494f8e3bd

View File

@@ -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;