A Discord Rich Presence library
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
discordrich-0.0.1.tar.gz
(8.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file discordrich-0.0.1.tar.gz.
File metadata
- Download URL: discordrich-0.0.1.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cacdb90ede65d7f30039fc024c6f48ac8f9df95b3dec988a0d792dace9b089bb
|
|
| MD5 |
d54bb9d06bc48a2ee3526f5de82a7bc0
|
|
| BLAKE2b-256 |
85de587cce78781baee12de982c290fed38aa7eefb1a0b6a2e48793e3a7c5a6c
|
File details
Details for the file discordrich-0.0.1-py3-none-any.whl.
File metadata
- Download URL: discordrich-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fa467c5090d2d14b8bf6d0772dddbdb4406232719081aa9b92ad1bd63e85bc7
|
|
| MD5 |
cd7fe9e940cffec746714ff9bba4e526
|
|
| BLAKE2b-256 |
939427500898dde6626c6e12b1837c33f2a0fc3ae011591d1b1a64c305664a50
|