Skip to content

Commit

Permalink
fix(Client): spelling of InvalidScopesWithPermissions
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed May 1, 2023
1 parent 133a6bb commit ac9bf3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/client/Client.js
Expand Up @@ -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));
Expand Down

0 comments on commit ac9bf3a

Please sign in to comment.