discord-toggle-rpc 0.1.0

A simple command-line app to toggle Discord Rich Presence written in Rust.
Documentation
  • Coverage
  • 0%
    0 out of 5 items documented0 out of 4 items with examples
  • Size
  • Source code size: 33.56 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 476.68 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 35s Average build duration of successful builds.
  • all releases: 35s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Veirt

discord-toggle-rpc

A simple command-line app to toggle Discord Rich Presence written in Rust.

Discord Rich Presence is status that shows up when you're playing game or listening to Spotify.

Install

cargo install discord-toggle-rpc

Environment Variables

  • DISCORD_TOKEN

How to Find Your Discord Token

Your Discord token usually will look like mfa.<random characters> or <random characters>

To find your Discord token open your Discord with Discord App or browser

  • On browser, open your browser DevTool (Inspect Element) and go to Network tab. Click on any XHR request and find your authorization request header.

  • On Discord App, hold Ctrl+Shift+i to open the DevTool and do the rest following the browser method. If this doesn't work, please use the browser method instead.

Set the environment variables

Copy your Discord Token and add new line in /etc/environment

DISCORD_TOKEN=<your token>