Presence#update does nothing on the new Discord client
See original GitHub issuei’m hoping this is just a matter of me being blind and missing something, but i’m currently unable to get pypresence to actually display anything on Linux or Windows.
minimal script to reproduce:
from pypresence import Presence
from time import sleep
from sys import exit
RPC = Presence('440997014315204609')
RPC.connect()
print("Sending update")
RPC.update(state='Hello', details='World')
while True:
print("Sleeping...")
try:
sleep(15)
except KeyboardInterrupt as e:
RPC.close()
print("RPC closed")
exit(0)
i’m using virtualenv so it’s a controlled environment in terms of python libs installed & python version used. my environment:
- Arch Linux (Kernel version 5.7.12)
- Python 3.8.5 / 3.6.11 (tried both)
- pypresence 3.2.2 / 4.0.0 (tried both, with both versions of python)
- Discord 0.0.11 (the new client as of a few days ago)
- Windows 10
- Python 3.7.4
- pypresence 4.0.0
- Latest Discord client (forgot to check version)
i’m hoping i’m wrong but i’m thinking maybe it’s something changed with the new Discord client. it connects just fine, throws no errors when calling RPC.update, and in all senses seems to work just fine. the only problem being… no rich presence:
I’ve also tried a different client ID using a fresh Discord app in the developers portal, but no dice. same problem, it just doesn’t update anything at all it seems.
I’m also not the only one unable to get this to work, I have a simple program using pypresence called discord-rpc-mpris that is currently nonfunctional because of this. that’s actually how this issue came to my attention, as a user tried to install discord-rpc-mpris, and it did nothing
Issue Analytics
- State:
- Created 3 years ago
- Comments:10
Top GitHub Comments
Not home atm, can’t test sorry. Will respond properly in a few days
Maybe checking running porcesses for Discord, DiscordCanary, etc