Skip to main content

About

Discord Rich is a Discord RPC library.

Installation

pip install discordrich

Examples

# Import DiscordRich
from discordrpc import *
import time

RPC = Presence('clientid')

# Start RPC Client
RPC.connect()

# Update RPC
RPC.update(state="Rich Presence using DiscordRich!")

while True:  # The presence will stay on as long as the program is running
    time.sleep(15) # Can only update rich presence every 15 seconds

Syntax

Presence

Update:

RPC.update(state)
RPC.update(start) 
RPC.update(large_image)   
RPC.update(small_image)   
RPC.update(party_id)   
RPC.update(join)   
RPC.update(match)
RPC.update(instance)

Connect:

RPC.connect()

Close:

RPC.close()

Clear:

RPC.clear()

Release files for discordrich 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for discordrich 0.0.1
File Size Uploaded
discordrich-0.0.1.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for discordrich 0.0.1
File Interpreter ABI Platform
discordrich-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / discordrich-0.0.1.tar.gz

Download URL discordrich-0.0.1.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cacdb90ede65d7f30039fc024c6f48ac8f9df95b3dec988a0d792dace9b089bb
BLAKE2b-256 checksum
How to use checksums
85de587cce78781baee12de982c290fed38aa7eefb1a0b6a2e48793e3a7c5a6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release files / discordrich-0.0.1-py3-none-any.whl

Download URL discordrich-0.0.1-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0fa467c5090d2d14b8bf6d0772dddbdb4406232719081aa9b92ad1bd63e85bc7
BLAKE2b-256 checksum
How to use checksums
939427500898dde6626c6e12b1837c33f2a0fc3ae011591d1b1a64c305664a50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page