mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-11-25 02:01:28 +00:00
Handle cases where people put False-like values for game presences.
This commit is contained in:
@@ -176,8 +176,8 @@ class Server(Hashable):
|
||||
member.status = Status(member.status)
|
||||
except:
|
||||
pass
|
||||
game = presence.get('game')
|
||||
member.game = game and Game(**game)
|
||||
game = presence.get('game', {})
|
||||
member.game = Game(**game) if game else None
|
||||
|
||||
if 'channels' in guild:
|
||||
channels = guild['channels']
|
||||
|
||||
Reference in New Issue
Block a user