Skip to content

Commit

Permalink
feat: add new activity flags (#6699)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Nov 1, 2021
1 parent e94073a commit 47d74eb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/util/ActivityFlags.js
Expand Up @@ -23,6 +23,9 @@ class ActivityFlags extends BitField {}
* * `JOIN_REQUEST`
* * `SYNC`
* * `PLAY`
* * `PARTY_PRIVACY_FRIENDS`
* * `PARTY_PRIVACY_VOICE_CHANNEL`
* * `EMBEDDED`
* @type {Object}
* @see {@link https://discord.com/developers/docs/topics/gateway#activity-object-activity-flags}
*/
Expand All @@ -33,6 +36,9 @@ ActivityFlags.FLAGS = {
JOIN_REQUEST: 1 << 3,
SYNC: 1 << 4,
PLAY: 1 << 5,
PARTY_PRIVACY_FRIENDS: 1 << 6,
PARTY_PRIVACY_VOICE_CHANNEL: 1 << 7,
EMBEDDED: 1 << 8,
};

module.exports = ActivityFlags;
11 changes: 10 additions & 1 deletion typings/index.d.ts
Expand Up @@ -3048,7 +3048,16 @@ export interface WebhookFields extends PartialWebhookFields {

//#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'>;

Expand Down

0 comments on commit 47d74eb

Please sign in to comment.