fix(Client): update authorizeURL return type to include location

This commit is contained in:
Elysia
2025-01-21 14:09:28 +07:00
parent 8afd17de49
commit 171d7e5927

2
typings/index.d.ts vendored
View File

@@ -808,7 +808,7 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
options?: AcceptInviteOptions, options?: AcceptInviteOptions,
): Promise<Guild | DMChannel | GroupDMChannel>; ): Promise<Guild | DMChannel | GroupDMChannel>;
public redeemNitro(nitro: string, channel?: TextChannelResolvable, paymentSourceId?: Snowflake): Promise<any>; public redeemNitro(nitro: string, channel?: TextChannelResolvable, paymentSourceId?: Snowflake): Promise<any>;
public authorizeURL(urlOAuth2: string, options?: OAuth2AuthorizeOptions): Promise<any>; public authorizeURL(urlOAuth2: string, options?: OAuth2AuthorizeOptions): Promise<{ location: string }>;
public installUserApps(applicationId: Snowflake): Promise<void>; public installUserApps(applicationId: Snowflake): Promise<void>;
public deauthorize(applicationId: Snowflake): Promise<void>; public deauthorize(applicationId: Snowflake): Promise<void>;