aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcod <[email protected]>2019-02-19 00:04:14 +0900
committercod <[email protected]>2019-02-19 00:27:05 +0900
commit262717c7d8546cbb886b5c01057298cd5f30fb4d (patch)
treed378f90fc407b91be166ce29fb26364ebcbecd41
parentTranslated ext.commands.HelpFormatter class. (diff)
downloaddiscord.py-262717c7d8546cbb886b5c01057298cd5f30fb4d.tar.xz
discord.py-262717c7d8546cbb886b5c01057298cd5f30fb4d.zip
[commands] add document comment to HelpFormatter.get_ending_note
-rw-r--r--discord/ext/commands/formatter.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/ext/commands/formatter.py b/discord/ext/commands/formatter.py
index 1ead32c4..faead747 100644
--- a/discord/ext/commands/formatter.py
+++ b/discord/ext/commands/formatter.py
@@ -204,6 +204,7 @@ class HelpFormatter:
return prefix + cmd.signature
def get_ending_note(self):
+ """Returns help command's ending note. You can override this method for customization like i18n."""
command_name = self.context.invoked_with
return "Type {0}{1} command for more info on a command.\n" \
"You can also type {0}{1} category for more info on a category.".format(self.clean_prefix, command_name)