|
@ -344,7 +344,8 @@ class HelpCommand: |
|
|
# consider this to be an *incredibly* strange use case. I'd rather go |
|
|
# consider this to be an *incredibly* strange use case. I'd rather go |
|
|
# for this common use case rather than waste performance for the |
|
|
# for this common use case rather than waste performance for the |
|
|
# odd one. |
|
|
# odd one. |
|
|
return self.context.prefix.replace(user.mention, '@' + user.display_name) |
|
|
pattern = re.compile(r"<@!?%s>" % user.id) |
|
|
|
|
|
return pattern.sub("@%s" % user.display_name, self.context.prefix) |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|
def invoked_with(self): |
|
|
def invoked_with(self): |
|
|