mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
* Backport the STREAM permission * Update typings and default
This commit is contained in:
@@ -208,6 +208,7 @@ class Permissions {
|
|||||||
* - `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`
|
||||||
* - `READ_MESSAGES` **(deprecated)**
|
* - `READ_MESSAGES` **(deprecated)**
|
||||||
* - `SEND_MESSAGES`
|
* - `SEND_MESSAGES`
|
||||||
@@ -244,6 +245,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,
|
||||||
READ_MESSAGES: 1 << 10,
|
READ_MESSAGES: 1 << 10,
|
||||||
@@ -282,7 +284,7 @@ Permissions.ALL = Object.keys(Permissions.FLAGS).reduce((all, p) => all | Permis
|
|||||||
* Bitfield representing the default permissions for users
|
* Bitfield representing the default permissions for users
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
Permissions.DEFAULT = 104324097;
|
Permissions.DEFAULT = 104324673;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class EvaluatedPermissions
|
* @class EvaluatedPermissions
|
||||||
|
|||||||
3
typings/index.d.ts
vendored
3
typings/index.d.ts
vendored
@@ -1997,6 +1997,7 @@ declare module 'discord.js' {
|
|||||||
ADD_REACTIONS?: number;
|
ADD_REACTIONS?: number;
|
||||||
VIEW_AUDIT_LOG?: number;
|
VIEW_AUDIT_LOG?: number;
|
||||||
PRIORITY_SPEAKER?: number;
|
PRIORITY_SPEAKER?: number;
|
||||||
|
STREAM?: number;
|
||||||
VIEW_CHANNEL?: number;
|
VIEW_CHANNEL?: number;
|
||||||
READ_MESSAGES?: number;
|
READ_MESSAGES?: number;
|
||||||
SEND_MESSAGES?: number;
|
SEND_MESSAGES?: number;
|
||||||
@@ -2032,6 +2033,7 @@ declare module 'discord.js' {
|
|||||||
ADD_REACTIONS?: boolean;
|
ADD_REACTIONS?: boolean;
|
||||||
VIEW_AUDIT_LOG?: boolean;
|
VIEW_AUDIT_LOG?: boolean;
|
||||||
PRIORITY_SPEAKER?: boolean;
|
PRIORITY_SPEAKER?: boolean;
|
||||||
|
STREAM?: boolean;
|
||||||
VIEW_CHANNEL?: boolean;
|
VIEW_CHANNEL?: boolean;
|
||||||
READ_MESSAGES?: boolean;
|
READ_MESSAGES?: boolean;
|
||||||
SEND_MESSAGES?: boolean;
|
SEND_MESSAGES?: boolean;
|
||||||
@@ -2066,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'
|
||||||
| 'READ_MESSAGES'
|
| 'READ_MESSAGES'
|
||||||
| 'SEND_MESSAGES'
|
| 'SEND_MESSAGES'
|
||||||
|
|||||||
Reference in New Issue
Block a user