Skip to content

Commit 485dd71

Browse files
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>
1 parent 566d5e2 commit 485dd71

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/discord.js/src/structures/Presence.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,13 @@ class Activity {
216216
*/
217217
this.party = data.party ?? null;
218218

219+
/**
220+
* The sync id of the activity
221+
* <info>This property is not documented by Discord and represents the track id in spotify activities.</info>
222+
* @type {?string}
223+
*/
224+
this.syncId = data.sync_id ?? null;
225+
219226
/**
220227
* Assets for rich presence
221228
* @type {?RichPresenceAssets}

packages/discord.js/typings/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ export class Activity {
264264
size: [number, number];
265265
} | null;
266266
public state: string | null;
267+
public syncId: string | null;
267268
public timestamps: {
268269
start: Date | null;
269270
end: Date | null;

0 commit comments

Comments
 (0)