mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix: Incorrect NSFW Status on Channels (#2499)
* Fix #2498 * wow this code seems familiar * please be the last iteration
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user