|
@ -181,12 +181,12 @@ class HelpFormatter: |
|
|
@property |
|
|
@property |
|
|
def clean_prefix(self): |
|
|
def clean_prefix(self): |
|
|
"""The cleaned up invoke prefix. i.e. mentions are ``@name`` instead of ``<@id>``.""" |
|
|
"""The cleaned up invoke prefix. i.e. mentions are ``@name`` instead of ``<@id>``.""" |
|
|
user = self.context.bot.user |
|
|
user = self.context.guild.me if self.context.guild else self.context.bot.user |
|
|
# this breaks if the prefix mention is not the bot itself but I |
|
|
# this breaks if the prefix mention is not the bot itself but I |
|
|
# 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.name) |
|
|
return self.context.prefix.replace(user.mention, '@' + user.display_name) |
|
|
|
|
|
|
|
|
def get_command_signature(self): |
|
|
def get_command_signature(self): |
|
|
"""Retrieves the signature portion of the help page.""" |
|
|
"""Retrieves the signature portion of the help page.""" |
|
|