New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

discord-rich-presence

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-rich-presence - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "discord-rich-presence",
"version": "0.0.1",
"version": "0.0.2",
"description": "rich presence wrapper for discord-rpc",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -24,36 +24,11 @@ <div align="center">

client.on('join', (secret) => {
console.log('we should join with', secret);
client.updatePresence({
state: 'slithering',
details: '🐍',
startTimestamp: Date.now(),
endTimestamp: Date.now() + 1337,
largeImageKey: 'snek_large',
smallImageKey: 'snek_small',
instance: true,
});
client.on('spectate', (secret) => {
console.log('we should spectate with', secret);
});
client.on('joinRequest', (user) => {
if (user.discriminator === '1337')
client.reply(user, 'YES');
else
client.reply(user, 'IGNORE');
});
client.on('connected', () => {
console.log('connected!');
client.updatePresence({
state: 'slithering',
details: '🐍',
startTimestamp: Date.now(),
endTimestamp: Date.now() + 1337,
largeImageKey: 'snek_large',
smallImageKey: 'snek_small',
partyId: 'snek_party',
partySize: 1,
partyMax: 1,
matchSecret: 'slithers',
joinSecret: 'boop',
spectateSecret: 'sniff',
instance: true,
});
});
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc