mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 17:21:31 +00: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:
parent
fc81924724
commit
5494f8e3bd
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue