diff options
| author | Devon R <[email protected]> | 2019-11-14 21:37:23 +0000 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-11-15 04:25:38 -0500 |
| commit | f5ebf42e1f2c4e9d3ffe1a9edd59a659ff483c53 (patch) | |
| tree | b0df1fc8f2e5780048add68ea03905f66cf58327 /discord/activity.py | |
| parent | Add view_guild_insights permission (diff) | |
| download | discord.py-f5ebf42e1f2c4e9d3ffe1a9edd59a659ff483c53.tar.xz discord.py-f5ebf42e1f2c4e9d3ffe1a9edd59a659ff483c53.zip | |
Return invites as https, various URL normalization
Diffstat (limited to 'discord/activity.py')
| -rw-r--r-- | discord/activity.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/discord/activity.py b/discord/activity.py index 3acc046d..ae6061c0 100644 --- a/discord/activity.py +++ b/discord/activity.py @@ -26,6 +26,7 @@ DEALINGS IN THE SOFTWARE. import datetime +from .asset import Asset from .enums import ActivityType, try_enum from .colour import Colour from .utils import _get_as_snowflake @@ -205,7 +206,7 @@ class Activity(_ActivityTag): except KeyError: return None else: - return 'https://cdn.discordapp.com/app-assets/{0}/{1}.png'.format(self.application_id, large_image) + return Asset.BASE + 'app-assets/{0}/{1}.png'.format(self.application_id, large_image) @property def small_image_url(self): @@ -218,7 +219,7 @@ class Activity(_ActivityTag): except KeyError: return None else: - return 'https://cdn.discordapp.com/app-assets/{0}/{1}.png'.format(self.application_id, small_image) + return Asset.BASE + '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.""" |