Fix missing or broken versionadded in docstrings

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

No files matched your search

+8
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