
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
discord-rpc is a powerful library created by Discord, allowing developers to integrate Rich Presence functionality into their Discord applications smoothly.
[!NOTE] This Discord RPC is a remake of the original discord-rpc created by Discord.js, also known as Discord.
npm install dc-rpc
pnpm install dc-rpc
// Importing Discord-RPC
const { RpcClient } = require('dc-rpc');
// Create an instance of Discord-RPC
const client = new RpcClient();
// ================================================================
// Your Applications Client ID
const Id = 'client_id';
// Login To Discord RPC
await client.login({ clientId: Id });
// ================================================================
// Function When Client Is Ready
client.on('ready', () => {
console.log('Authed for user:', client.user.username); // Console Output: Authed for user: [discord_username]
// Set Activity (Example)
client.setActivity({
state: 'it work!!!',
details: 'Testing RPC',
largeImageKey: 'icon_name', // From Discord Applications Rich Presence Assets
largeImageText: 'this is icon',
startTimestamp: Date.now(),
});
});
// ================================================================
// Destroying Or Disconnecting From RPC
client.destroy();
This Project under MIT License
© 2019 - 2024 Strivo Development. All Rights Reserved
FAQs
discord-rpc is a powerful library created by Discord, allowing developers to integrate Rich Presence functionality into their Discord applications smoothly.
The npm package dc-rpc receives a total of 2 weekly downloads. As such, dc-rpc popularity was classified as not popular.
We found that dc-rpc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.