mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: remove usage of the prefer-global rules (#11279)
This commit is contained in:
committed by
GitHub
parent
548d75258b
commit
9bf1f739e0
@@ -27,7 +27,6 @@ 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();
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { clearTimeout, setTimeout } from 'node:timers';
|
||||
import type { REST } from '@discordjs/rest';
|
||||
import { calculateShardId, GatewayRateLimitError } from '@discordjs/util';
|
||||
import { WebSocketShardEvents } from '@discordjs/ws';
|
||||
|
||||
Reference in New Issue
Block a user