aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar xithrius <[email protected]>2021-02-12 01:22:12 -0800
committerGravatar xithrius <[email protected]>2021-02-12 01:22:12 -0800
commitbcab6614bba3ca71edeb134089846570e0e47547 (patch)
tree41c76ccd86d74dedaeec1afaea75e9ed8d2e07f3
parentFinalized logic to account for null cases. (diff)
Moved hyperlink to title.
-rw-r--r--bot/exts/info/pypi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/info/pypi.py b/bot/exts/info/pypi.py
index 4ad72b673..c7ec22fc6 100644
--- a/bot/exts/info/pypi.py
+++ b/bot/exts/info/pypi.py
@@ -32,9 +32,9 @@ class PyPi(Cog):
response_json = await response.json()
info = response_json["info"]
- embed.title = "Python Package Index"
+ embed.title = f"{info['name']} v{info['version']}"
+ embed.url = info['package_url']
embed.colour = Colours.soft_green
- embed.description = f"[{info['name']} v{info['version']}]({info['package_url']})\n"
for field in FIELDS:
# Field could be completely empty, in some cases can be a string with whitespaces, or None.