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));