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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Hashes for discordrich-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cacdb90ede65d7f30039fc024c6f48ac8f9df95b3dec988a0d792dace9b089bb
MD5 d54bb9d06bc48a2ee3526f5de82a7bc0
BLAKE2b-256 85de587cce78781baee12de982c290fed38aa7eefb1a0b6a2e48793e3a7c5a6c

See more details on using hashes here.

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

Hashes for discordrich-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0fa467c5090d2d14b8bf6d0772dddbdb4406232719081aa9b92ad1bd63e85bc7
MD5 cd7fe9e940cffec746714ff9bba4e526
BLAKE2b-256 939427500898dde6626c6e12b1837c33f2a0fc3ae011591d1b1a64c305664a50

See more details on using hashes here.

Supported by

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