Discord-RPC

An Python wrapper for Discord RPC

MIT License

Downloads
531
Stars
26

Discord RPC

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

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.

Links

Licence & Copyright

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