feat: RichPresence#setPlatform

This commit is contained in:
Elysia
2024-07-04 19:12:47 +07:00
parent f63b1528d4
commit 516d8917bd
5 changed files with 50 additions and 18 deletions

3
typings/index.d.ts vendored
View File

@@ -193,6 +193,7 @@ export class RichPresence extends Activity {
public setButtons(...button: RichButton[]): this;
public addButton(name: string, url: string): this;
public setJoinSecret(join?: string): this;
public setPlatform(platform?: ActivityPlatform): this;
public static getExternal(
client: Client,
applicationId: Snowflake,
@@ -4415,7 +4416,7 @@ export interface ActivityOptions {
shardId?: number | readonly number[];
}
export type ActivityPlatform = 'desktop' | 'samsung' | 'xbox';
export type ActivityPlatform = 'desktop' | 'samsung' | 'xbox' | 'ios' | 'android' | 'embedded' | 'ps4' | 'ps5';
export type ActivityType = keyof typeof ActivityTypes;