Fix channel.setNsfw

This commit is contained in:
Samuel Elliott 2018-06-10 22:41:14 +01:00
parent 4a3bb89259
commit cecaf314f9
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 3 additions and 3 deletions

View File

@ -299,16 +299,16 @@ export class GuildTextChannel extends GuildChannel {
} }
/** /**
* Updates this channel's NSFW flag. * Updates this channel's not-safe-for-work flag.
* @param {Boolean} nsfw Whether the channel should be marked as NSFW * @param {Boolean} nsfw Whether the channel should be marked as NSFW
* @return {Promise} * @return {Promise}
*/ */
setNswf(nsfw = true) { setNsfw(nsfw = true) {
return this.updateChannel({ nsfw }); return this.updateChannel({ nsfw });
} }
setNotNsfw() { setNotNsfw() {
return this.setNswf(false); return this.setNsfw(false);
} }
} }