question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Presence#update does nothing on the new Discord client

See original GitHub issue

i’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:

image

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:closed
  • Created 3 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
TheSpookyCatcommented, Aug 11, 2020

Not home atm, can’t test sorry. Will respond properly in a few days

0reactions
TheSpookyCatcommented, Aug 25, 2020

Maybe checking running porcesses for Discord, DiscordCanary, etc

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discord.js 'presenceUpdate' not being called - Stack Overflow
If the presenceUpdate event doesn't trigger, chances are you'll need to add the GUILD_PRESENCES intent either using the client options:
Read more >
Problem with presenceUpdate : r/Discordjs - Reddit
Hello guys, I have this weird issue can't figure it out. Here's part of my code in the app.js: console.log("test1"); // shows in...
Read more >
presenceUpdate's newPresence doesn't always include all ...
It seems as if the Array of activities does not always include all the activities of the member. Discord shows the person as...
Read more >
[NEW] Presence GUIDE || Discord.JS v14 - YouTube
In addition to our How To Make A Discord Bot in Discord.JS v14 series, this video I will be teaching you how to...
Read more >
Gateway - Discord Developer Portal
All events that your app can send via a connection are in Gateway event ... If an app can resume/reconnect, it should open...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found