mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +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}
|
* @type {boolean}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
this.nsfw = Boolean(data.nsfw);
|
this.nsfw = data.nsfw || /^nsfw(-|$)/.test(this.name);
|
||||||
|
|
||||||
this.lastMessageID = data.last_message_id;
|
this.lastMessageID = data.last_message_id;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user