From 46a50cb57c41ceb1a56dc3bbc6cb8a11e70bc6a0 Mon Sep 17 00:00:00 2001 From: Crawl Date: Fri, 28 Jul 2017 05:20:28 +0200 Subject: [PATCH] Fix "shitty" shortcut --- src/structures/TextChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/TextChannel.js b/src/structures/TextChannel.js index 252e3460b..d7f0a73f3 100644 --- a/src/structures/TextChannel.js +++ b/src/structures/TextChannel.js @@ -29,7 +29,7 @@ class TextChannel extends GuildChannel { * @type {boolean} * @readonly */ - this.nsfw = !!data.nsfw; + this.nsfw = Boolean(data.nsfw); this.lastMessageID = data.last_message_id; }