fix(Activity): platform type (#7805)

This commit is contained in:
Hyro
2022-04-21 19:07:18 +02:00
committed by GitHub
parent 4972bd87c1
commit 4ac91c61d0
2 changed files with 2 additions and 12 deletions

View File

@@ -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;

View File

@@ -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;