astridlol / discord-rich-presence

discord-rich-presence by devsnek but with the ability to get user info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Rich Presence

A simple wrapper around discord-rpc

Example

const client = require('discord-rich-presence')('180984871685062656');
const user = client.getUser();
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.

About

discord-rich-presence by devsnek but with the ability to get user info


Languages

Language:JavaScript 100.0%