Add Stream permission (#3309)

* Add Stream permission

* update docs, and DEFAULT

Created a new guild to test DEFAULT

* update typings
This commit is contained in:
bdistin
2019-05-30 02:26:49 -05:00
committed by Amish Shah
parent 8652e47c14
commit 5154850a54
2 changed files with 4 additions and 2 deletions

View File

@@ -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;

1
typings/index.d.ts vendored
View File

@@ -2068,6 +2068,7 @@ declare module 'discord.js' {
| 'ADD_REACTIONS'
| 'VIEW_AUDIT_LOG'
| 'PRIORITY_SPEAKER'
| 'STREAM'
| 'VIEW_CHANNEL'
| 'SEND_MESSAGES'
| 'SEND_TTS_MESSAGES'