fix: update Client#authorizeURL method

This commit is contained in:
Elysia
2025-01-20 22:59:10 +07:00
parent 48facbefea
commit 4442918d82
3 changed files with 25 additions and 29 deletions

8
typings/index.d.ts vendored
View File

@@ -794,7 +794,7 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
options?: AcceptInviteOptions,
): Promise<Guild | DMChannel | GroupDMChannel>;
public redeemNitro(nitro: string, channel?: TextChannelResolvable, paymentSourceId?: Snowflake): Promise<any>;
public authorizeURL(url: string, options?: OAuth2AuthorizeOptions): Promise<any>;
public authorizeURL(urlOAuth2: string, options?: OAuth2AuthorizeOptions): Promise<any>;
public installUserApps(applicationId: Snowflake): Promise<void>;
public deauthorize(applicationId: Snowflake): Promise<void>;
@@ -828,13 +828,13 @@ export interface AcceptInviteOptions {
bypassVerify: boolean;
}
export interface OAuth2AuthorizeOptions {
export type OAuth2AuthorizeOptions = {
guild_id?: Snowflake;
permissions?: PermissionResolvable;
permissions?: string;
authorize?: boolean;
code?: string;
webhook_channel_id?: Snowflake;
}
} & Record<string, unknown>;
export class ClientPresence extends Presence {
private constructor(client: Client, data: RawPresenceData);