Browse Source
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.
pull/1124/head
Myst(MysterialPy)
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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.""" |
|
|
|