mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(Activity): platform type (#7805)
This commit is contained in:
@@ -136,14 +136,6 @@ class Presence extends Base {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The platform of this activity:
|
||||
* * **`desktop`**
|
||||
* * **`samsung`** - playing on Samsung Galaxy
|
||||
* * **`xbox`** - playing on Xbox Live
|
||||
* @typedef {string} ActivityPlatform
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents an activity that is part of a user's presence.
|
||||
*/
|
||||
@@ -219,7 +211,7 @@ class Activity {
|
||||
|
||||
/**
|
||||
* The platform the game is being played on
|
||||
* @type {?ActivityPlatform}
|
||||
* @type {?string}
|
||||
*/
|
||||
this.platform = data.platform ?? null;
|
||||
|
||||
|
||||
4
packages/discord.js/typings/index.d.ts
vendored
4
packages/discord.js/typings/index.d.ts
vendored
@@ -199,7 +199,7 @@ export class Activity {
|
||||
id: string | null;
|
||||
size: [number, number];
|
||||
} | null;
|
||||
public platform: ActivityPlatform | null;
|
||||
public platform: string | null;
|
||||
public sessionId: string | null;
|
||||
public state: string | null;
|
||||
public syncId: string | null;
|
||||
@@ -3426,8 +3426,6 @@ export interface ActivityOptions {
|
||||
shardId?: number | readonly number[];
|
||||
}
|
||||
|
||||
export type ActivityPlatform = 'desktop' | 'samsung' | 'xbox';
|
||||
|
||||
export interface AddGuildMemberOptions {
|
||||
accessToken: string;
|
||||
nick?: string;
|
||||
|
||||
Reference in New Issue
Block a user