feat(Guild#defaultMessageNotifications) (#2538)

* feat(Guild#defaultMessageNotifications)

* boolean -> DefaultMessageNotifications

* Space's requested change
This commit is contained in:
Kyra
2018-05-29 00:44:04 +02:00
committed by Isabella
parent f0c4d0e834
commit 30c7d6d1b1
2 changed files with 19 additions and 1 deletions

View File

@@ -725,6 +725,17 @@ exports.APIErrors = {
REACTION_BLOCKED: 90001,
};
/**
* The value set for a guild's default message notifications, e.g. `ALL`. Here are the available types:
* * ALL
* * MENTIONS
* @typedef {string} DefaultMessageNotifications
*/
exports.DefaultMessageNotifications = [
'ALL',
'MENTIONS',
];
function keyMirror(arr) {
let tmp = Object.create(null);
for (const value of arr) tmp[value] = value;