Skip to content

Commit

Permalink
feat(Presence): Expose sync_id in Activity
Browse files Browse the repository at this point in the history
  • Loading branch information
almostSouji committed Aug 16, 2023
1 parent 24fbb11 commit f4fa4b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/discord.js/src/structures/Presence.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,13 @@ class Activity {
*/
this.party = data.party ?? null;

/**
* The sync id of the activity
* <info>This represents the track id in spotify activities.</info>
* @type {?string}
*/
this.syncId = data.sync_id ?? null;

/**
* Assets for rich presence
* @type {?RichPresenceAssets}
Expand Down
1 change: 1 addition & 0 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ export class Activity {
size: [number, number];
} | null;
public state: string | null;
public syncId: string | null;
public timestamps: {
start: Date | null;
end: Date | null;
Expand Down

0 comments on commit f4fa4b4

Please sign in to comment.