mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +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}
|
||||
* @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
|
||||
|
||||
Reference in New Issue
Block a user