feat(RichPresence): Support RPC Discord Apps (IPC) [2]

This commit is contained in:
March 7th 2022-07-23 18:56:49 +07:00
parent 7e44c3ff82
commit 4710329beb
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

3
typings/index.d.ts vendored
View File

@ -183,7 +183,7 @@ export interface RichButton {
}
export abstract class RichPresence {
public constructor(client?: Client, data?: object);
public constructor(client?: Client, data?: object, IPC?: boolean);
public application_id: Snowflake | null;
public assets: RichPresenceAssets | null;
public buttons: string[];
@ -200,6 +200,7 @@ export abstract class RichPresence {
} | null;
public type: ActivityType;
public url: string | null;
public ipc: boolean;
public setAssetsLargeImage(image?: any): this;
public setAssetsLargeText(text?: string): this;
public setAssetsSmallImage(image?: any): this;