aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ext/commands/help.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/help.py b/discord/ext/commands/help.py
index 72992de9..226e5f6a 100644
--- a/discord/ext/commands/help.py
+++ b/discord/ext/commands/help.py
@@ -345,7 +345,7 @@ class HelpCommand:
# for this common use case rather than waste performance for the
# odd one.
pattern = re.compile(r"<@!?%s>" % user.id)
- return pattern.sub("@%s" % user.display_name, self.context.prefix)
+ return pattern.sub("@%s" % user.display_name.replace('\\', r'\\'), self.context.prefix)
@property
def invoked_with(self):