From 5154850a54ad4a4d253c14d1ae34db94c68d28fe Mon Sep 17 00:00:00 2001 From: bdistin Date: Thu, 30 May 2019 02:26:49 -0500 Subject: [PATCH] Add Stream permission (#3309) * Add Stream permission * update docs, and DEFAULT Created a new guild to test DEFAULT * update typings --- src/util/Permissions.js | 5 +++-- typings/index.d.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/util/Permissions.js b/src/util/Permissions.js index 9f01df399..ef5273ffd 100644 --- a/src/util/Permissions.js +++ b/src/util/Permissions.js @@ -41,6 +41,7 @@ class Permissions extends BitField { * * `ADD_REACTIONS` (add new reactions to messages) * * `VIEW_AUDIT_LOG` * * `PRIORITY_SPEAKER` + * * `STREAM` * * `VIEW_CHANNEL` * * `SEND_MESSAGES` * * `SEND_TTS_MESSAGES` @@ -74,7 +75,7 @@ Permissions.FLAGS = { ADD_REACTIONS: 1 << 6, VIEW_AUDIT_LOG: 1 << 7, PRIORITY_SPEAKER: 1 << 8, - + STREAM: 1 << 9, VIEW_CHANNEL: 1 << 10, SEND_MESSAGES: 1 << 11, SEND_TTS_MESSAGES: 1 << 12, @@ -109,6 +110,6 @@ Permissions.ALL = Object.values(Permissions.FLAGS).reduce((all, p) => all | p, 0 * Bitfield representing the default permissions for users * @type {number} */ -Permissions.DEFAULT = 104324097; +Permissions.DEFAULT = 104324673; module.exports = Permissions; diff --git a/typings/index.d.ts b/typings/index.d.ts index e3ead1e72..9fb53f40d 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -2068,6 +2068,7 @@ declare module 'discord.js' { | 'ADD_REACTIONS' | 'VIEW_AUDIT_LOG' | 'PRIORITY_SPEAKER' + | 'STREAM' | 'VIEW_CHANNEL' | 'SEND_MESSAGES' | 'SEND_TTS_MESSAGES'