diff --git a/src/structures/TextChannel.js b/src/structures/TextChannel.js index 20b3c54f3..d9da21f7a 100644 --- a/src/structures/TextChannel.js +++ b/src/structures/TextChannel.js @@ -24,6 +24,13 @@ class TextChannel extends GuildChannel { */ this.topic = data.topic; + /** + * If the Discord considers this channel NSFW + * @type {boolean} + * @readonly + */ + this.nsfw = data.nsfw; + this.lastMessageID = data.last_message_id; } @@ -42,15 +49,6 @@ class TextChannel extends GuildChannel { return members; } - /** - * If the Discord considers this channel NSFW - * @type {boolean} - * @readonly - */ - get nsfw() { - return /^nsfw(-|$)/.test(this.name); - } - /** * Fetch all webhooks for the channel. * @returns {Promise>}