chore: upgrade deps (#10824)

This commit is contained in:
Noel
2025-04-05 13:18:56 +02:00
committed by GitHub
parent 432aba3df7
commit f580de8025
200 changed files with 6756 additions and 12893 deletions

View File

@@ -27,6 +27,7 @@ export class OAuth2API {
* @param options - The options for creating the authorization URL
*/
public generateAuthorizationURL(options: RESTOAuth2AuthorizationQuery) {
// eslint-disable-next-line n/prefer-global/url
const url = new URL(`${RouteBases.api}${Routes.oauth2Authorization()}`);
url.search = makeURLSearchParams(options).toString();
return url.toString();

View File

@@ -141,7 +141,6 @@ export class WebhooksAPI {
body,
auth: false,
signal,
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
}) as Promise<RESTPostAPIWebhookWithTokenWaitResult | void>;
}

View File

@@ -185,6 +185,7 @@ export interface MappedEvents {
[GatewayDispatchEvents.WebhooksUpdate]: [ToEventProps<GatewayWebhooksUpdateDispatchData>];
}
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface ManagerShardEventsMap extends MappedEvents {}
export interface ClientOptions {

View File

@@ -1,6 +1,6 @@
export * from './api/index.js';
export * from './client.js';
export * from './Gateway.js';
export type * from './Gateway.js';
export * from './util/index.js';
export * from 'discord-api-types/v10';