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

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.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 30 (9 by maintainers)

Most upvoted comments

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.