Socket
Socket
Sign inDemoInstall

discord-rich-presence-typescript

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-rich-presence-typescript

rich presence wrapper for discord-rpc


Version published
Maintainers
1
Weekly downloads
431
decreased by-39.12%

Weekly downloads

Readme

Source

Discord server NPM version NPM downloads Dependencies

NPM info

Discord Rich Presence Typescript

this is an fork from devsnek/discord-rich-presence just with typescript support

A simple wrapper around discord-rpc

Example

const client = require("discord-rich-presence-typescript")(
	"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-typescript/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

FAQs

Last updated on 21 Mar 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc