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.

JDA.getPresence().setGame(); randomly doesn't work

See original GitHub issue

When I use JDA.getPresence().setGame(game); it mostly updates the game of my bot, but sometimes the old game stays.

JDA.getPresence().setGame(null); also doesn’t work everytime. Sometimes it doesn’t clear the game, the bot still plays.

I’m using JDA 3.0.0_180.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:30

github_iconTop GitHub Comments

2reactions
jagroshcommented, Apr 23, 2017

That actually wouldn’t work. You don’t receive any kind of notification if a different login on the same account changes your game. So if you have 2 bots logged into the same account (we’ll call them LoginA and LoginB), if LoginA sets the game to “a cool game”, and then LoginB sets it to “a weird game”, LoginA’s JDA will still report the current game as “a cool game” even though it has changed for everyone else.

Additionally, with only one login, it still gets updated internally even if it fails.

0reactions
SparklingCometcommented, Apr 23, 2017

Rip, didn’t know that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discord jda bot || UserUpdateActivitiesEvent does not trigger
I used jda.getUserCache(); to check if the caching worked and I am i the cache, but it still doesn't work. java ...
Read more >
Code a Discord Bot in Java with Discord JDA! (Episode 1
Hello. In this new series, I teach you how to code your own Discord in Java using Discord JDA ! In this episode,...
Read more >
Presence (JDA 4.4.0_352 API)
Sets all presence fields of this session. Parameters: status - The OnlineStatus for this session (See setStatus(OnlineStatus) ) ...
Read more >
Gateway - Discord Developer Portal
The Gateway API lets apps open secure WebSocket connections with Discord to ... If an app doesn't receive a Heartbeat ACK, it should...
Read more >
report_volume5.pdf - Senate Intelligence Committee
(U) The Committee found that Manafort's presence on the Campaign at;td proximity to. Trump created opportunities for Russian intelligence ...
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