diff --git a/packages/discord.js/src/structures/Presence.js b/packages/discord.js/src/structures/Presence.js index 1f6efb130..d0a00d34c 100644 --- a/packages/discord.js/src/structures/Presence.js +++ b/packages/discord.js/src/structures/Presence.js @@ -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; diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 57db5e9e3..81091b8b7 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -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;