mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
fix(TextChannel): remove old nsfw regex check (#3775)
This commit is contained in:
@@ -41,7 +41,7 @@ class TextChannel extends GuildChannel {
|
|||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
this.nsfw = data.nsfw || /^nsfw(-|$)/.test(this.name);
|
this.nsfw = data.nsfw;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ID of the last message sent in this channel, if one was sent
|
* The ID of the last message sent in this channel, if one was sent
|
||||||
|
|||||||
Reference in New Issue
Block a user