Skip to content

Commit

Permalink
fix(Activity): platform type (#7805)
Browse files Browse the repository at this point in the history
  • Loading branch information
xHyroM committed Apr 21, 2022
1 parent 4972bd8 commit 4ac91c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
10 changes: 1 addition & 9 deletions packages/discord.js/src/structures/Presence.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -219,7 +211,7 @@ class Activity {

/**
* The platform the game is being played on
* @type {?ActivityPlatform}
* @type {?string}
*/
this.platform = data.platform ?? null;

Expand Down
4 changes: 1 addition & 3 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -3426,8 +3426,6 @@ export interface ActivityOptions {
shardId?: number | readonly number[];
}

export type ActivityPlatform = 'desktop' | 'samsung' | 'xbox';

export interface AddGuildMemberOptions {
accessToken: string;
nick?: string;
Expand Down

0 comments on commit 4ac91c6

Please sign in to comment.