mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
Escape backslashes in display name in clean_prefix
This commit is contained in:
parent
0fd5eca0d5
commit
79276da17e
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user