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 hashes)
Built Distribution
Close
Hashes for discordrich-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fa467c5090d2d14b8bf6d0772dddbdb4406232719081aa9b92ad1bd63e85bc7 |
|
MD5 | cd7fe9e940cffec746714ff9bba4e526 |
|
BLAKE2b-256 | 939427500898dde6626c6e12b1837c33f2a0fc3ae011591d1b1a64c305664a50 |