const clientId = "287406016902594560";
const scopes = ["rpc", "rpc.api", "messages.read"];
const client = new RPC.Client({ transport: "websocket" });
client.on("ready", () => {
console.log("Logged in as", client.application.name);
console.log("Authed for user", client.user.username);
client.selectVoiceChannel("81384788862181376");
});
// Log in to RPC with client id
client.login({ clientId, scopes });
forked from discordjs/RPC
A simple RPC client for Discord
License
Silent-Client/discord-rpc
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A simple RPC client for Discord
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 97.5%
- CSS 1.6%
- HTML 0.9%