diff options
| author | 2021-03-04 13:26:42 -0600 | |
|---|---|---|
| committer | 2021-03-04 13:26:42 -0600 | |
| commit | cce1b2cb25b572ac3e976b190d7eae417240ae76 (patch) | |
| tree | 565b915d28c5730fffb951f94726809713fb7c9e | |
| parent | clarification in some areas (diff) | |
API guideline fix for Unsplash
| -rw-r--r-- | bot/exts/easter/earth_photos.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/easter/earth_photos.py b/bot/exts/easter/earth_photos.py index c1704e12..39bb627e 100644 --- a/bot/exts/easter/earth_photos.py +++ b/bot/exts/easter/earth_photos.py @@ -31,7 +31,6 @@ class EarthPhotos(commands.Cog): username = userdata.get("name") userlinks = userdata.get("links") profile = userlinks.get("html") - # Extra request as per Unsplash Guidelines async with self.bot.http_session.get( downloadlinksdata.get("download_location"), params={"client_id": Tokens.unsplash_access_key} @@ -44,7 +43,9 @@ class EarthPhotos(commands.Cog): color=Colours.grass_green ) embed.set_image(url=embedlink) - embed.add_field(name="Author", value=f"Photo by [{username}]({profile}) on Unsplash.") + embed.add_field(name="Author", + value=f"Photo by [{username}]({profile}?utm_source=sir_lancebot&utm_medium=referral)\ + on [Unsplash](https://unsplash.com?utm_source=sir_lancebot&utm_medium=referral).") await ctx.send(embed=embed) |