Browse Source

[commands] Actually expose the FlagError base error

pull/6758/head
Rapptz 4 years ago
parent
commit
18bf3d3a7d
  1. 1
      discord/ext/commands/errors.py
  2. 6
      docs/ext/commands/api.rst

1
discord/ext/commands/errors.py

@ -75,6 +75,7 @@ __all__ = (
'ExtensionFailed',
'ExtensionNotFound',
'CommandRegistrationError',
'FlagError',
'BadFlagArgument',
'MissingFlagArgument',
'TooManyFlags',

6
docs/ext/commands/api.rst

@ -467,6 +467,9 @@ Exceptions
.. autoexception:: discord.ext.commands.NSFWChannelRequired
:members:
.. autoexception:: discord.ext.commands.FlagError
:members:
.. autoexception:: discord.ext.commands.BadFlagArgument
:members:
@ -524,7 +527,8 @@ Exception Hierarchy
- :exc:`~.commands.EmojiNotFound`
- :exc:`~.commands.PartialEmojiConversionFailure`
- :exc:`~.commands.BadBoolArgument`
- :exc:`~.commands.BadFlagArgument`
- :exc:`~.commands.FlagError`
- :exc:`~.commands.BadFlagArgument`
- :exc:`~.commands.MissingFlagArgument`
- :exc:`~.commands.TooManyFlags`
- :exc:`~.commands.MissingRequiredFlag`

Loading…
Cancel
Save