refactor(Activity): remove undocumented properties (#7844)

This commit is contained in:
Almeida
2022-04-25 23:30:45 +01:00
committed by GitHub
parent bfeaf856f7
commit 5ba7740fcf
2 changed files with 0 additions and 28 deletions

View File

@@ -143,12 +143,6 @@ class Activity {
constructor(presence, data) {
Object.defineProperty(this, 'presence', { value: presence });
/**
* The activity's id
* @type {string}
*/
this.id = data.id;
/**
* The activity's name
* @type {string}
@@ -203,18 +197,6 @@ class Activity {
}
: null;
/**
* The Spotify song's id
* @type {?string}
*/
this.syncId = data.sync_id ?? null;
/**
* The platform the game is being played on
* @type {?string}
*/
this.platform = data.platform ?? null;
/**
* Represents a party of an activity
* @typedef {Object} ActivityParty
@@ -246,12 +228,6 @@ class Activity {
*/
this.emoji = data.emoji ? new Emoji(presence.client, data.emoji) : null;
/**
* The game's or Spotify session's id
* @type {?string}
*/
this.sessionId = data.session_id ?? null;
/**
* The labels of the buttons of this rich presence
* @type {string[]}

View File

@@ -194,16 +194,12 @@ export class Activity {
public details: string | null;
public emoji: Emoji | null;
public flags: Readonly<ActivityFlagsBitField>;
public id: string;
public name: string;
public party: {
id: string | null;
size: [number, number];
} | null;
public platform: string | null;
public sessionId: string | null;
public state: string | null;
public syncId: string | null;
public timestamps: {
start: Date | null;
end: Date | null;