From ac9bf3ac06ec78dbaca2ce4a82cceb0d82484211 Mon Sep 17 00:00:00 2001 From: iCrawl Date: Mon, 1 May 2023 23:49:32 +0200 Subject: [PATCH] fix(Client): spelling of InvalidScopesWithPermissions --- packages/discord.js/src/client/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discord.js/src/client/Client.js b/packages/discord.js/src/client/Client.js index ddf8d3b7e468..83c44ed2ede8 100644 --- a/packages/discord.js/src/client/Client.js +++ b/packages/discord.js/src/client/Client.js @@ -421,7 +421,7 @@ class Client extends BaseClient { throw new DiscordjsTypeError(ErrorCodes.InvalidMissingScopes); } if (scopes.some(scope => ![OAuth2Scopes.Bot].includes(scope)) && options.permissions) { - throw new DiscordjsTypeError(ErrorCodes.InvalidScopeWithPermissions); + throw new DiscordjsTypeError(ErrorCodes.InvalidScopesWithPermissions); } const validScopes = Object.values(OAuth2Scopes); const invalidScope = scopes.find(scope => !validScopes.includes(scope));