Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Presence): Expose sync_id in Activity #9766

Merged
merged 3 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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
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