diff options
author | 2021-02-14 18:35:36 +0000 | |
---|---|---|
committer | 2021-02-14 18:35:36 +0000 | |
commit | f5750256e0a1dec881b937d7eb726f1f139b8d61 (patch) | |
tree | a6d43fa745d16dc0530f836f46e15c7807974612 | |
parent | Move Git SHA defining at end of Dockerfile to re-enable caching (diff) | |
parent | Merge pull request #1419 from python-discord/pypi-command-escape-markdown (diff) |
Merge branch 'master' into ks123/docker-git-sha
-rw-r--r-- | bot/exts/info/pypi.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/info/pypi.py b/bot/exts/info/pypi.py index cf45b068f..3e326e8bb 100644 --- a/bot/exts/info/pypi.py +++ b/bot/exts/info/pypi.py @@ -4,6 +4,7 @@ import random from discord import Embed from discord.ext.commands import Cog, Context, command +from discord.utils import escape_markdown from bot.bot import Bot from bot.constants import Colours, NEGATIVE_REPLIES @@ -53,7 +54,7 @@ class PyPi(Cog): embed.add_field( name=field.replace("_", " ").title(), - value=field_data, + value=escape_markdown(field_data), inline=False, ) |