Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat(Presence): Expose sync_id in Activity (#9766)
* feat(Presence): Expose sync_id in Activity

* chore: mention non-documentation

---------

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
  • Loading branch information
almostSouji and Jiralite committed Aug 25, 2023
1 parent 566d5e2 commit 485dd71
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
Expand Up @@ -216,6 +216,13 @@ class Activity {
*/
this.party = data.party ?? null;

/**
* The sync id of the activity
* <info>This property is not documented by Discord and 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
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 485dd71

Please sign in to comment.