RPC invalid_scope

Hello, I have an error. OAuth2 Error: invalid_scope: The requested scope is invalid, unknown, or malformed.
const clientId = "...";
const scopes = ["rpc", "messages.read"];
const { Client } = require("discord-rpc");
const { fetch } = require("undici");
const fs = require("fs");

const client = new Client({
transport: "ipc"
});

client.on("ready", () => {
console.log("Logged in as", client.application.name);
console.log("Authed for user", client.user.username);
});


client.login({
clientId: clientId,
scopes: scopes,
redirectUri: "...",
clientSecret: "..."
});
const clientId = "...";
const scopes = ["rpc", "messages.read"];
const { Client } = require("discord-rpc");
const { fetch } = require("undici");
const fs = require("fs");

const client = new Client({
transport: "ipc"
});

client.on("ready", () => {
console.log("Logged in as", client.application.name);
console.log("Authed for user", client.user.username);
});


client.login({
clientId: clientId,
scopes: scopes,
redirectUri: "...",
clientSecret: "..."
});
2 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server