mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
refactor(Activity): remove undocumented properties (#7844)
This commit is contained in:
@@ -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[]}
|
||||
|
||||
4
packages/discord.js/typings/index.d.ts
vendored
4
packages/discord.js/typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user