Releases: LordBoos/discord_game
Rich presence data
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
Fixed a bug that caused errors if user set custom status without emoji. Thanks to @C0ntroller for the fix.
Discord.py update
Updated discord.py to fix shard disconnection issue
Animated avatars and configurable avatar image format
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
Thanks to @xiidoz, usernames with underscores are now supported.
Support for names with quotes and double quotes
Thanks to @xiidoz, usernames with quotes and double quotes are now supported.
Support for names with special symbols
Thanks to @pinpoint87, usernames with special symbols like []{} are now supported.
Library update
Updated discord.py library to 1.3.1.
This should make this component compatible with official home assistant discord notify component.
Custom statuses
Quotes away
Remove redundant quotes around Spotify times