mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
feat: add new activity flags (#6699)
This commit is contained in:
@@ -23,6 +23,9 @@ class ActivityFlags extends BitField {}
|
|||||||
* * `JOIN_REQUEST`
|
* * `JOIN_REQUEST`
|
||||||
* * `SYNC`
|
* * `SYNC`
|
||||||
* * `PLAY`
|
* * `PLAY`
|
||||||
|
* * `PARTY_PRIVACY_FRIENDS`
|
||||||
|
* * `PARTY_PRIVACY_VOICE_CHANNEL`
|
||||||
|
* * `EMBEDDED`
|
||||||
* @type {Object}
|
* @type {Object}
|
||||||
* @see {@link https://discord.com/developers/docs/topics/gateway#activity-object-activity-flags}
|
* @see {@link https://discord.com/developers/docs/topics/gateway#activity-object-activity-flags}
|
||||||
*/
|
*/
|
||||||
@@ -33,6 +36,9 @@ ActivityFlags.FLAGS = {
|
|||||||
JOIN_REQUEST: 1 << 3,
|
JOIN_REQUEST: 1 << 3,
|
||||||
SYNC: 1 << 4,
|
SYNC: 1 << 4,
|
||||||
PLAY: 1 << 5,
|
PLAY: 1 << 5,
|
||||||
|
PARTY_PRIVACY_FRIENDS: 1 << 6,
|
||||||
|
PARTY_PRIVACY_VOICE_CHANNEL: 1 << 7,
|
||||||
|
EMBEDDED: 1 << 8,
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = ActivityFlags;
|
module.exports = ActivityFlags;
|
||||||
|
|||||||
11
typings/index.d.ts
vendored
11
typings/index.d.ts
vendored
@@ -3048,7 +3048,16 @@ export interface WebhookFields extends PartialWebhookFields {
|
|||||||
|
|
||||||
//#region Typedefs
|
//#region Typedefs
|
||||||
|
|
||||||
export type ActivityFlagsString = 'INSTANCE' | 'JOIN' | 'SPECTATE' | 'JOIN_REQUEST' | 'SYNC' | 'PLAY';
|
export type ActivityFlagsString =
|
||||||
|
| 'INSTANCE'
|
||||||
|
| 'JOIN'
|
||||||
|
| 'SPECTATE'
|
||||||
|
| 'JOIN_REQUEST'
|
||||||
|
| 'SYNC'
|
||||||
|
| 'PLAY'
|
||||||
|
| 'PARTY_PRIVACY_FRIENDS'
|
||||||
|
| 'PARTY_PRIVACY_VOICE_CHANNEL'
|
||||||
|
| 'EMBEDDED';
|
||||||
|
|
||||||
export type ActivitiesOptions = Omit<ActivityOptions, 'shardId'>;
|
export type ActivitiesOptions = Omit<ActivityOptions, 'shardId'>;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user