Skip to main content

Complete Discord RPC interface written in Python

Project description

DiscordRPC.py

A complete RPC interface for Discord's API.

Original code by qwertyquerty and LewdNeko

This whole thing is a big TODO right now...


Installation

Install from pip

Extending BaseClient

If you are looking to extend BaseClient and implement your own behaviour / set of endpoints, please remember to implement the following:

  • close - a way of tidying up any open files or the event loop
  • on_event - If you do not want events, this can just pass, but if you do then you must handle them accordingly. The only argument passed is data, a dictionary created from Discord's event structure. You must be subscribed to receive these.

How to Use

License

Code that is indifferent from pypresence v3.3.1 or earlier remains licensed under the MIT license and retain their copyright to the respective owner. Any changes that have been made are licensed and copyrighted under BSD 3-Clause "New" or "Revised" to LBots.

Project details


Release history Release notifications

This version

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for DiscordRPC.py, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size DiscordRPC.py-1.0.0-py2.py3-none-any.whl (11.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size DiscordRPC.py-1.0.0.tar.gz (8.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page