mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
feat(Guild#defaultMessageNotifications) (#2538)
* feat(Guild#defaultMessageNotifications) * boolean -> DefaultMessageNotifications * Space's requested change
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user