aboutsummaryrefslogtreecommitdiff
path: root/discord/activity.py
diff options
context:
space:
mode:
authorMyst(MysterialPy) <[email protected]>2018-03-07 23:32:20 +1000
committerGitHub <[email protected]>2018-03-07 23:32:20 +1000
commit31cc4c39deeebc7f487f774aedbaad5a1ff19550 (patch)
treee4405be95ad55e1dc7bd00a2ec8a9c8063401dbc /discord/activity.py
parentConvert Client.activity back to an Activity-like object (diff)
downloaddiscord.py-31cc4c39deeebc7f487f774aedbaad5a1ff19550.tar.xz
discord.py-31cc4c39deeebc7f487f774aedbaad5a1ff19550.zip
Fix _image_url returning htps
Should be https :) Just made this a separate PR from my previous one, in-case you decide to not include it.
Diffstat (limited to 'discord/activity.py')
-rw-r--r--discord/activity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/activity.py b/discord/activity.py
index ff3be197..46d2244e 100644
--- a/discord/activity.py
+++ b/discord/activity.py
@@ -185,7 +185,7 @@ class Activity(_ActivityTag):
except KeyError:
return None
else:
- return 'htps://cdn.discordapp.com/app-assets/{0}/{1}.png'.format(self.application_id, large_image)
+ return 'https://cdn.discordapp.com/app-assets/{0}/{1}.png'.format(self.application_id, large_image)
@property
def small_image_url(self):
@@ -198,7 +198,7 @@ class Activity(_ActivityTag):
except KeyError:
return None
else:
- return 'htps://cdn.discordapp.com/app-assets/{0}/{1}.png'.format(self.application_id, small_image)
+ return 'https://cdn.discordapp.com/app-assets/{0}/{1}.png'.format(self.application_id, small_image)
@property
def large_image_text(self):
"""Optional[:class:`str`]: Returns the large image asset hover text of this activity if applicable."""