From cecaf314f90fb499eb97ac487518544fc7342b1d Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Sun, 10 Jun 2018 22:41:14 +0100 Subject: [PATCH] Fix channel.setNsfw --- client/src/structs/discord/channel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/structs/discord/channel.js b/client/src/structs/discord/channel.js index 354d7411..cedbddee 100644 --- a/client/src/structs/discord/channel.js +++ b/client/src/structs/discord/channel.js @@ -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 * @return {Promise} */ - setNswf(nsfw = true) { + setNsfw(nsfw = true) { return this.updateChannel({ nsfw }); } setNotNsfw() { - return this.setNswf(false); + return this.setNsfw(false); } }