Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
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

rich presence wrapper for discord-rpc

latest
Source
npmnpm
Version
0.0.8
Version published
Weekly downloads
490
49.85%
Maintainers
1
Weekly downloads
 
Created
Source

Discord server NPM version NPM downloads Dependencies Patreon

NPM info

Discord Rich Presence

A simple wrapper around discord-rpc

Example

const client = require('discord-rich-presence')('180984871685062656');

client.updatePresence({
  state: 'slithering',
  details: '🐍',
  startTimestamp: Date.now(),
  endTimestamp: Date.now() + 1337,
  largeImageKey: 'snek_large',
  smallImageKey: 'snek_small',
  instance: true,
});

In browser you can import/require it as discord-rich-presence/browser. However, it should be noted that currently using rich presence in browser is a feature whitelisted by Discord, and you will most likely be unable to use it.

Keywords

discord

FAQs

Package last updated on 21 Jan 2019

Did you know?

Socket

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.

Install

Related posts