mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
refactor(Activity): remove undocumented properties (#7844)
This commit is contained in:
@@ -143,12 +143,6 @@ class Activity {
|
|||||||
constructor(presence, data) {
|
constructor(presence, data) {
|
||||||
Object.defineProperty(this, 'presence', { value: presence });
|
Object.defineProperty(this, 'presence', { value: presence });
|
||||||
|
|
||||||
/**
|
|
||||||
* The activity's id
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
this.id = data.id;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The activity's name
|
* The activity's name
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@@ -203,18 +197,6 @@ class Activity {
|
|||||||
}
|
}
|
||||||
: null;
|
: 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
|
* Represents a party of an activity
|
||||||
* @typedef {Object} ActivityParty
|
* @typedef {Object} ActivityParty
|
||||||
@@ -246,12 +228,6 @@ class Activity {
|
|||||||
*/
|
*/
|
||||||
this.emoji = data.emoji ? new Emoji(presence.client, data.emoji) : null;
|
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
|
* The labels of the buttons of this rich presence
|
||||||
* @type {string[]}
|
* @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 details: string | null;
|
||||||
public emoji: Emoji | null;
|
public emoji: Emoji | null;
|
||||||
public flags: Readonly<ActivityFlagsBitField>;
|
public flags: Readonly<ActivityFlagsBitField>;
|
||||||
public id: string;
|
|
||||||
public name: string;
|
public name: string;
|
||||||
public party: {
|
public party: {
|
||||||
id: string | null;
|
id: string | null;
|
||||||
size: [number, number];
|
size: [number, number];
|
||||||
} | null;
|
} | null;
|
||||||
public platform: string | null;
|
|
||||||
public sessionId: string | null;
|
|
||||||
public state: string | null;
|
public state: string | null;
|
||||||
public syncId: string | null;
|
|
||||||
public timestamps: {
|
public timestamps: {
|
||||||
start: Date | null;
|
start: Date | null;
|
||||||
end: Date | null;
|
end: Date | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user