From 95b2dd3fe63ec9b6c7cec4f63f8276f4d907f228 Mon Sep 17 00:00:00 2001 From: Souji Date: Sun, 1 Jul 2018 18:03:47 +0200 Subject: [PATCH] feat: Add support for Guild#setDefaultMessageNotifications (#2624) * Feat: Guild#setDefaultMessageNotifications * fix typo --- src/structures/Guild.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 62615e3a4..17ceaba89 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -688,6 +688,18 @@ class Guild extends Base { return this.edit({ explicitContentFilter }, reason); } + /* eslint-disable max-len */ + /** + * Edits the setting of the default message notifications of the guild. + * @param {DefaultMessageNotifications|number} defaultMessageNotifications The new setting for the default message notifications + * @param {string} [reason] Reason for changing the setting of the default message notifications + * @returns {Promise} + */ + setDefaultMessageNotifications(defaultMessageNotifications, reason) { + return this.edit({ defaultMessageNotifications }, reason); + } + /* eslint-enable max-len */ + /** * Edits the name of the guild. * @param {string} name The new name of the guild