1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-14 01:40:02 +00:00

Default the Streaming name to the one passed for user created ones.

This commit is contained in:
Rapptz 2019-12-19 21:26:41 -05:00
parent a74bdaa8b2
commit fe1ebb3144

@ -400,7 +400,7 @@ class Streaming(_ActivityTag):
def __init__(self, *, name, url, **extra):
super().__init__(**extra)
self.platform = name
self.name = extra.pop('details', None)
self.name = extra.pop('details', name)
self.game = extra.pop('state', None)
self.url = url
self.details = extra.pop('details', self.name) # compatibility