Skip to content

Repository files navigation

Visitors Discord Total Downloads PyPI GitHub commit activity

Discord RPC

Dicord-RPC preview

A Python wrapper for the Discord RPC API that allows you to create your own custom Rich Presence.

Changelog Documentation

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.

More examples here.

Contributors

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

Links

Star History

Discord-RPC star history 2026-08-07

Last updated 2026-08-07

Licence & Copyright

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

About

A Python wrapper for the Discord RPC API

Topics

Resources

Stars

50 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages