diff options
| author | Rapptz <[email protected]> | 2019-12-19 21:26:41 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-12-19 21:26:41 -0500 |
| commit | fe1ebb314449343c6068ad1dbd23d5b78c86f3d3 (patch) | |
| tree | 25073533f8fac594f6fe465efcabc695e47a7187 | |
| parent | Add `Guild.discovery_splash_url/_as`, `Guild.rules_channel` (diff) | |
| download | discord.py-fe1ebb314449343c6068ad1dbd23d5b78c86f3d3.tar.xz discord.py-fe1ebb314449343c6068ad1dbd23d5b78c86f3d3.zip | |
Default the Streaming name to the one passed for user created ones.
| -rw-r--r-- | discord/activity.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/activity.py b/discord/activity.py index b97f8e31..d2670715 100644 --- a/discord/activity.py +++ b/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 |