diff options
| author | Rapptz <[email protected]> | 2016-01-27 06:35:03 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-01-27 06:37:31 -0500 |
| commit | d8d4c4e8434affa4b477eee53984b2529058b1c7 (patch) | |
| tree | f421fa0264cc41e4b7c531f14e7e9d9deaf64058 | |
| parent | Try to make the pause/resume loop not busy. (diff) | |
| download | discord.py-d8d4c4e8434affa4b477eee53984b2529058b1c7.tar.xz discord.py-d8d4c4e8434affa4b477eee53984b2529058b1c7.zip | |
[commands] Fix typo on HelpFormatter.show_check_failure attribute.
| -rw-r--r-- | discord/ext/commands/formatter.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/discord/ext/commands/formatter.py b/discord/ext/commands/formatter.py index 0a052776..b20be04f 100644 --- a/discord/ext/commands/formatter.py +++ b/discord/ext/commands/formatter.py @@ -65,17 +65,17 @@ class HelpFormatter: show_hidden : bool Dictates if hidden commands should be shown in the output. Defaults to ``False``. - show_check_faiure : bool + show_check_failure : bool Dictates if commands that have their :attr:`Command.checks` failed shown. Defaults to ``False``. width : int The maximum number of characters that fit in a line. Defaults to 80. """ - def __init__(self, show_hidden=False, show_check_faiure=False, width=80): + def __init__(self, show_hidden=False, show_check_failure=False, width=80): self.wrapper = textwrap.TextWrapper(width=width) self.show_hidden = show_hidden - self.show_check_faiure = show_check_faiure + self.show_check_failure = show_check_failure def has_subcommands(self): """bool : Specifies if the command has subcommands.""" @@ -166,7 +166,7 @@ class HelpFormatter: def filter_command_list(self): """Returns a filtered list of commands based on the two attributes - provided, :attr:`show_check_faiure` and :attr:`show_hidden`. Also + provided, :attr:`show_check_failure` and :attr:`show_hidden`. Also filters based on if :meth:`is_cog` is valid. Returns @@ -185,7 +185,7 @@ class HelpFormatter: if cmd.hidden and not self.show_hidden: return False - if self.show_check_faiure: + if self.show_check_failure: # we don't wanna bother doing the checks if the user does not # care about them, so just return true. return True |