Skip to main content

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


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)

Uploaded Source

Built Distribution

discordrich-0.0.1-py3-none-any.whl (10.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page