Fix missing or broken versionadded in docstrings

This also documents BadFlagArgument.flag
This commit is contained in:
AkshuAgarwal
2021-08-18 04:45:02 +00:00
committed by GitHub
parent f7a3ea90b8
commit 6b6bcb92e6
5 changed files with 26 additions and 3 deletions

View File

@ -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