Browse Source

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

pull/2483/head
Rapptz 5 years ago
parent
commit
fe1ebb3144
  1. 2
      discord/activity.py

2
discord/activity.py

@ -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

Loading…
Cancel
Save