Add TextChannel#setNSFW method (#2050)

* Add TextChannel#setNSFW method

* Doesn't look like anything to me

* butts
This commit is contained in:
Schuyler Cebulskie
2017-10-27 10:34:18 -04:00
committed by GitHub
parent cd54e9317f
commit 0fc9459450
2 changed files with 12 additions and 0 deletions

View File

@@ -248,6 +248,7 @@ class GuildChannel extends Channel {
* @property {string} [name] The name of the channel
* @property {number} [position] The position of the channel
* @property {string} [topic] The topic of the text channel
* @property {boolean} [nsfw] Whether the channel is NSFW
* @property {number} [bitrate] The bitrate of the voice channel
* @property {number} [userLimit] The user limit of the voice channel
* @property {Snowflake} [parentID] The parent ID of the channel
@@ -290,6 +291,7 @@ class GuildChannel extends Channel {
data: {
name: (data.name || this.name).trim(),
topic: data.topic,
nsfw: data.nsfw,
bitrate: data.bitrate || (this.bitrate ? this.bitrate * 1000 : undefined),
user_limit: data.userLimit != null ? data.userLimit : this.userLimit, // eslint-disable-line eqeqeq
parent_id: data.parentID,