mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
feat: Add support for Guild#setDefaultMessageNotifications (#2624)
* Feat: Guild#setDefaultMessageNotifications * fix typo
This commit is contained in:
parent
077d41fbca
commit
95b2dd3fe6
1 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue