• Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language
    JavaScript
  • Created about 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Discord RPC but only the rich presence part

Discord server NPM version NPM downloads Dependencies

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.

More Repositories

1

esvu

esvu is your one-stop shop for all implementations of ECMAScript.
JavaScript
174
star
2

snekfetch

fast, efficient, and user-friendly http requests
JavaScript
77
star
3

node-wasi

WASI for Node.js
JavaScript
69
star
4

googlebot

google for discord, yo
JavaScript
46
star
5

slither

A programming language for the modern world.
Rust
40
star
6

earl

Pure JavaScript ETF encoder/decoder
JavaScript
21
star
7

zero-archive

🐢✨🔨
JavaScript
19
star
8

scribe

A bot for transcribing voice calls on Discord
JavaScript
18
star
9

webtoondl

Download Webtoon comics quickly and nicely
JavaScript
17
star
10

secret

Secret is a low-level library for Discord.
JavaScript
15
star
11

snek_os

Rust
15
star
12

proposal-unused-function-parameters

HTML
14
star
13

scratchc

Compile Scratch SB3 files to native executables.
Rust
13
star
14

to_cell

JavaScript
12
star
15

threads

thread like a pro
JavaScript
12
star
16

wgctrl-js

Wireguard Control API for Node.js
C++
9
star
17

node-zstd

Zstandard bindings for Node.js
Rust
9
star
18

tis100.js

TIS-100 Implementation in JavaScript
JavaScript
9
star
19

writeas.js

9
star
20

TagScript

JavaScript
8
star
21

dotfiles

Vim Script
7
star
22

weak-value-map

The WeakValueMap you deserve
JavaScript
7
star
23

js-plc-bot

The bot for the JS Programming Language Community Server
JavaScript
7
star
24

fused

JavaScript
7
star
25

run

Abstracts `make`/`npm`/`cargo`/etc. into a single `run` command.
Rust
7
star
26

fuzzy

super duper fuzzer for javascript
JavaScript
6
star
27

ecmabot

JavaScript
6
star
28

ProcessAsPromised

A small lib for promisified native process IPC communication
JavaScript
6
star
29

discord_bouncer

A fast and simple way to communicate with the Discord API
JavaScript
6
star
30

node-snowfall

A Snowflake generator and deconstructor.
JavaScript
5
star
31

github-notifications-addon

JavaScript
5
star
32

esm_loader

Just load the darn modules
C++
5
star
33

spotify.js

JavaScript
5
star
34

syncify

C++
5
star
35

boop-teh-snek

award winning game
JavaScript
4
star
36

jupyter-nodejs

Jupyter kernel for Node.js
JavaScript
4
star
37

discordfs

JavaScript
4
star
38

node-register-scheme

C++
4
star
39

raw-wasm

WebAssembly
4
star
40

webpack-csp-plugin

Generate a CSP header from your webpack build
JavaScript
4
star
41

private-symbol

C++
4
star
42

node-gist

create gists quickly and easily
JavaScript
3
star
43

funcord

funcord
JavaScript
3
star
44

promise_util

JavaScript
3
star
45

apibot

JavaScript
3
star
46

js

JavaScript
3
star
47

thonkfan

Easy fan control for thinkpads
Rust
3
star
48

http2-push-parser

JavaScript
3
star
49

promise-reference

Reference implementation of ECMA-262 Promises, in JavaScript
JavaScript
3
star
50

snekshot

JavaScript
3
star
51

jsont

Json't JSON Library
Rust
3
star
52

cf-tunnel-rs

Rust
3
star
53

config.js

JavaScript
2
star
54

what3words.js

JavaScript
2
star
55

node-whatwg

Provide as many whatwg spec interfaces as possible
JavaScript
2
star
56

node-newsapi

JavaScript
2
star
57

airbus-fbw-rs

Rust
2
star
58

ecma262-multipage

JavaScript
2
star
59

devsnek

2
star
60

eventemitter-native

C++
2
star
61

snekparse

JavaScript
2
star
62

commandont

JavaScript
2
star
63

benchmark

benchmark like a pro, wherever you go
JavaScript
2
star
64

n

JavaScript
2
star
65

semaphore.js

proper semaphores for javascript
JavaScript
2
star
66

noderlang

Noderlang allows Node.js programs to easily operate in BEAM environments
JavaScript
2
star
67

jsfuck-loader

JavaScript
2
star
68

node-source-map-support

stupid implementation of source map support for node because everything else is broken
JavaScript
2
star
69

tz-lookup

C
1
star
70

tinyint

JavaScript
1
star
71

gopher.js

JavaScript
1
star
72

snekpack

JavaScript
1
star
73

node-freenect

JavaScript
1
star
74

hMod-Login

A Login Plugin For hMod
Java
1
star
75

node-xrandr

JavaScript
1
star
76

mic_x100

Out-of-tree port of Intel MIC x100 drivers
C
1
star
77

matrix-ircd

Rust
1
star
78

node-noasi

Disable ASI once and for all
JavaScript
1
star
79

behemoth-test

1
star
80

ecma262-a09c766

HTML
1
star
81

eslint-plugin-node

JavaScript
1
star
82

slitherbot

JavaScript
1
star
83

airbus-fly-by-wire-wasm

C++
1
star
84

node-twemote

JavaScript
1
star
85

privacy.js

JavaScript
1
star
86

node-chrome-interface

JavaScript
1
star
87

stickerbot

JavaScript
1
star
88

snek.lgbt

HTML
1
star
89

buildy-test

TypeScript
1
star
90

jsdoc-dynamic

JavaScript
1
star
91

eslint-plugin-v8

JavaScript
1
star
92

node-superhero

JavaScript
1
star
93

coinscoinscoins

JavaScript
1
star
94

.github

1
star
95

js_transport

serialize all the things
JavaScript
1
star
96

airbus-fly-by-wire-matlab

MATLAB
1
star
97

shitty_shell

JavaScript
1
star
98

replika.js

JavaScript
1
star
99

endwww

HTML
1
star
100

snekdraw

JavaScript
1
star