diff --git a/packages/discord.js/src/structures/Presence.js b/packages/discord.js/src/structures/Presence.js index 79ecb2918b3b..817cbc75beae 100644 --- a/packages/discord.js/src/structures/Presence.js +++ b/packages/discord.js/src/structures/Presence.js @@ -216,6 +216,13 @@ class Activity { */ this.party = data.party ?? null; + /** + * The sync id of the activity + * This represents the track id in spotify activities. + * @type {?string} + */ + this.syncId = data.sync_id ?? null; + /** * Assets for rich presence * @type {?RichPresenceAssets} diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 78503e17ebe3..dad5fe933c83 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -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;