diff options
| author | AkshuAgarwal <[email protected]> | 2021-08-18 04:45:02 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-18 00:45:02 -0400 |
| commit | 6b6bcb92e610b4e3a2b3178c1f48fa7871b281e4 (patch) | |
| tree | 874e96c1c4115235de70970d8b998c510e29fc38 /discord/ext | |
| parent | Add other message types exclusions to Message.is_system (diff) | |
| download | discord.py-6b6bcb92e610b4e3a2b3178c1f48fa7871b281e4.tar.xz discord.py-6b6bcb92e610b4e3a2b3178c1f48fa7871b281e4.zip | |
Fix missing or broken versionadded in docstrings
This also documents BadFlagArgument.flag
Diffstat (limited to 'discord/ext')
| -rw-r--r-- | discord/ext/commands/errors.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/discord/ext/commands/errors.py b/discord/ext/commands/errors.py index 9c9c7bab..55bc9a12 100644 --- a/discord/ext/commands/errors.py +++ b/discord/ext/commands/errors.py @@ -931,6 +931,14 @@ class TooManyFlags(FlagError): class BadFlagArgument(FlagError): """An exception raised when a flag failed to convert a value. + This inherits from :exc:`FlagError` + + .. versionadded:: 2.0 + + Attributes + ----------- + flag: :class:`~discord.ext.commands.Flag` + The flag that failed to convert. """ def __init__(self, flag): self.flag = flag |