Skip to content

Commit

Permalink
refactor(Activity): remove undocumented properties (#7844)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Apr 25, 2022
1 parent bfeaf85 commit 5ba7740
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
24 changes: 0 additions & 24 deletions packages/discord.js/src/structures/Presence.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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[]}
Expand Down
4 changes: 0 additions & 4 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5ba7740

Please sign in to comment.