feat: Add support for Guild#setDefaultMessageNotifications (#2624)

* Feat: Guild#setDefaultMessageNotifications

* fix typo
This commit is contained in:
Souji
2018-07-01 18:03:47 +02:00
committed by Isabella
parent 077d41fbca
commit 95b2dd3fe6

View File

@@ -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<Guild>}
*/
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