aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-06-21 15:58:55 +0200
committerGravatar Numerlor <[email protected]>2020-06-21 15:58:55 +0200
commita28ae5dfb610151060eab9856c44b2d192131f0d (patch)
treeda4c66f80b5965558f559e83121f38b9d71fd442
parentCorrect return when a module symbol could not be parsed. (diff)
Strip backticks from symbol input.
This allows the user to wrap symbols in codeblocks to avoid markdown.
-rw-r--r--bot/cogs/doc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/cogs/doc.py b/bot/cogs/doc.py
index 1c9d80e47..0dc1713a3 100644
--- a/bot/cogs/doc.py
+++ b/bot/cogs/doc.py
@@ -458,6 +458,7 @@ class Doc(commands.Cog):
await ctx.send(embed=inventory_embed)
else:
+ symbol = symbol.strip("`")
# Fetching documentation for a symbol (at least for the first time, since
# caching is used) takes quite some time, so let's send typing to indicate
# that we got the command, but are still working on it.