mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 20:20:55 +00:00
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:
parent
8652e47c14
commit
5154850a54
2 changed files with 4 additions and 2 deletions
|
|
@ -41,6 +41,7 @@ class Permissions extends BitField {
|
||||||
* * `ADD_REACTIONS` (add new reactions to messages)
|
* * `ADD_REACTIONS` (add new reactions to messages)
|
||||||
* * `VIEW_AUDIT_LOG`
|
* * `VIEW_AUDIT_LOG`
|
||||||
* * `PRIORITY_SPEAKER`
|
* * `PRIORITY_SPEAKER`
|
||||||
|
* * `STREAM`
|
||||||
* * `VIEW_CHANNEL`
|
* * `VIEW_CHANNEL`
|
||||||
* * `SEND_MESSAGES`
|
* * `SEND_MESSAGES`
|
||||||
* * `SEND_TTS_MESSAGES`
|
* * `SEND_TTS_MESSAGES`
|
||||||
|
|
@ -74,7 +75,7 @@ Permissions.FLAGS = {
|
||||||
ADD_REACTIONS: 1 << 6,
|
ADD_REACTIONS: 1 << 6,
|
||||||
VIEW_AUDIT_LOG: 1 << 7,
|
VIEW_AUDIT_LOG: 1 << 7,
|
||||||
PRIORITY_SPEAKER: 1 << 8,
|
PRIORITY_SPEAKER: 1 << 8,
|
||||||
|
STREAM: 1 << 9,
|
||||||
VIEW_CHANNEL: 1 << 10,
|
VIEW_CHANNEL: 1 << 10,
|
||||||
SEND_MESSAGES: 1 << 11,
|
SEND_MESSAGES: 1 << 11,
|
||||||
SEND_TTS_MESSAGES: 1 << 12,
|
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
|
* Bitfield representing the default permissions for users
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
Permissions.DEFAULT = 104324097;
|
Permissions.DEFAULT = 104324673;
|
||||||
|
|
||||||
module.exports = Permissions;
|
module.exports = Permissions;
|
||||||
|
|
|
||||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
|
|
@ -2068,6 +2068,7 @@ declare module 'discord.js' {
|
||||||
| 'ADD_REACTIONS'
|
| 'ADD_REACTIONS'
|
||||||
| 'VIEW_AUDIT_LOG'
|
| 'VIEW_AUDIT_LOG'
|
||||||
| 'PRIORITY_SPEAKER'
|
| 'PRIORITY_SPEAKER'
|
||||||
|
| 'STREAM'
|
||||||
| 'VIEW_CHANNEL'
|
| 'VIEW_CHANNEL'
|
||||||
| 'SEND_MESSAGES'
|
| 'SEND_MESSAGES'
|
||||||
| 'SEND_TTS_MESSAGES'
|
| 'SEND_TTS_MESSAGES'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue