feat: default values for setX boolean methods (#6619)

This commit is contained in:
Rodry
2021-09-14 23:25:50 +01:00
committed by GitHub
parent 0a71a4d18f
commit 8add4b08f5
5 changed files with 24 additions and 24 deletions

View File

@@ -99,11 +99,11 @@ class BaseGuildTextChannel extends GuildChannel {
/**
* Sets whether this channel is flagged as NSFW.
* @param {boolean} nsfw Whether the channel should be considered NSFW
* @param {boolean} [nsfw=true] Whether the channel should be considered NSFW
* @param {string} [reason] Reason for changing the channel's NSFW flag
* @returns {Promise<TextChannel>}
*/
setNSFW(nsfw, reason) {
setNSFW(nsfw = true, reason) {
return this.edit({ nsfw }, reason);
}