Skip to main content

An Python wrapper for Discord RPC

Project description

Visitors Discord Total Downloads PyPI PyPI - Status GitHub commit activity

Discord RPC

An Python wrapper for Discord RPC API. Allow you to make own custom RPC.

Changelog

Install

  • PyPI
pip install discord-rpc

Quick example

import discordrpc

rpc = discordrpc.RPC(app_id=12345678910)

rpc.set_activity(
      state="A super simple rpc",
      details="simple RPC"
    )

# Required if you only run Discord RPC on this file or current instance.
rpc.run()

rpc.run() is only used if you are only running Discord RPC on the current file/instance. If there are other programs/tasks on the current instance, rpc.run() does not need to be used.

See documentation here.
More examples here.

Contributors

Big thanks for contributors who help this project keep updated, and maintained.

Pukima
Pukima

🐛
k9er
k9er

📖
Kale
Kale

🐛
TaIFeel
TaIFeel

💻
Jesusaves
Jesusaves

🐛

Links

Licence & Copyright

This Project under MIT License
Copyright (c) 2021-2024 Senophyx

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

discord-rpc-5.0.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

discord_rpc-5.0-py3-none-any.whl (7.4 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