Skip to content

Releases: LordBoos/discord_game

Rich presence data

22 Aug 12:25
Compare
Choose a tag to compare

Added new attributes which pull information about games using Rich presence. This includes:

  • game_state
    • This is often used by games to display current game state (like "In champion select" or "In game" for LoL).
  • game_details
    • This is often used by games to display some details about the current game (like maps or game mode eg. "Howling Abyss (ARAM)" for LoL).
  • game_image_large and game_image_small
    • Those are used to either display the game icon, map icon or for LoL it displays the portrait of the champion that the user is playing right now.
  • game_image_large_text and game_image_small_text
    • Those are texts that are displayed if you hover your mouse over the rich presence image. I've seen usages like game name, map name or for LoL there is a name of the currently played champion.

Please keep in mind, that the Rich Presence implementation is completely done on the side of game developers, so the data can be whatever they want. Eg. Yuzu emulator seems to have reversed game_state and game_details where game_details just shows "Currently in game" and game_state shows the name of the game while most games have it reversed.

This new feature can also be used to get currently played game from Nintendo Switch.

I've also added attribute avatar_url, that shows users current avatar URL.

Custom status without emoji fix

27 Jul 09:03
48ac7ca
Compare
Choose a tag to compare

Fixed a bug that caused errors if user set custom status without emoji. Thanks to @C0ntroller for the fix.

Discord.py update

25 Jul 10:22
04d086e
Compare
Choose a tag to compare

Updated discord.py to fix shard disconnection issue

Animated avatars and configurable avatar image format

11 May 11:56
e4d171d
Compare
Choose a tag to compare

Thanks to @niklaswa, animated avatars are now supported and image format is now configurable (defaults to webp). For iOS you should set the format to png or jpg or avatars will not load, because Safari does not support webp format.

Underscores fix

11 May 09:29
cc23fbc
Compare
Choose a tag to compare

Thanks to @xiidoz, usernames with underscores are now supported.

Support for names with quotes and double quotes

07 May 20:38
36d1a99
Compare
Choose a tag to compare

Thanks to @xiidoz, usernames with quotes and double quotes are now supported.

Support for names with special symbols

04 May 12:10
ee481a8
Compare
Choose a tag to compare

Thanks to @pinpoint87, usernames with special symbols like []{} are now supported.

Library update

03 Feb 12:48
Compare
Choose a tag to compare

Updated discord.py library to 1.3.1.
This should make this component compatible with official home assistant discord notify component.

Custom statuses

18 Jan 02:01
Compare
Choose a tag to compare

Added Discord custom statuses support even with emoji.
Only unicode emojis will show up as images, custom emojis will only display as emoji name.
chrome_m6gNe5cSdf

Quotes away

29 Oct 14:18
Compare
Choose a tag to compare

Remove redundant quotes around Spotify times