We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
generateInvite()
1 parent e262df9 commit b327f49Copy full SHA for b327f49
packages/discord.js/src/client/Client.js
@@ -420,7 +420,7 @@ class Client extends BaseClient {
420
if (!scopes.some(scope => [OAuth2Scopes.Bot, OAuth2Scopes.ApplicationsCommands].includes(scope))) {
421
throw new DiscordjsTypeError(ErrorCodes.InvalidMissingScopes);
422
}
423
- if (scopes.some(scope => ![OAuth2Scopes.Bot].includes(scope)) && options.permissions) {
+ if (!scopes.includes(OAuth2Scopes.Bot) && options.permissions) {
424
throw new DiscordjsTypeError(ErrorCodes.InvalidScopesWithPermissions);
425
426
const validScopes = Object.values(OAuth2Scopes);
0 commit comments