mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
chore: upgrade deps (#10824)
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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>;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user