This commit is contained in:
Elysia
2024-01-31 21:19:09 +07:00
parent 78e2fb2945
commit 3e84e501b7
2 changed files with 22 additions and 9 deletions

5
typings/index.d.ts vendored
View File

@@ -176,13 +176,9 @@ export interface RichButton {
export class RichPresence extends Activity {
public constructor(client: Client, data?: object);
public metadata: RichPresenceMetadata;
/** @deprecated */
public setAssetsLargeImage(image?: string): this;
/** @deprecated */
public setAssetsLargeText(text?: string): this;
/** @deprecated */
public setAssetsSmallImage(image?: string): this;
/** @deprecated */
public setAssetsSmallText(text?: string): this;
public setName(name?: string): this;
public setURL(url?: string): this;
@@ -195,6 +191,7 @@ export class RichPresence extends Activity {
public setEndTimestamp(timestamp: Date | number | null): this;
public setButtons(...button: RichButton[]): this;
public addButton(name: string, url: string): this;
public setJoinSecret(join?: string): this;
public static getExternal(
client: Client,
applicationId: Snowflake,