From 6ebd2e13a126b4dc223ac58017530ed58737f00e Mon Sep 17 00:00:00 2001 From: Simon Beal <5381483+muddyfish@users.noreply.github.com> Date: Fri, 4 Sep 2020 13:45:29 +0100 Subject: [commands] Add subclasses of BadArgument for converters --- docs/ext/commands/api.rst | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'docs') diff --git a/docs/ext/commands/api.rst b/docs/ext/commands/api.rst index d049e20b..5980d3cb 100644 --- a/docs/ext/commands/api.rst +++ b/docs/ext/commands/api.rst @@ -338,6 +338,39 @@ Exceptions .. autoexception:: discord.ext.commands.NotOwner :members: +.. autoexception:: discord.ext.commands.MessageNotFound + :members: + +.. autoexception:: discord.ext.commands.MemberNotFound + :members: + +.. autoexception:: discord.ext.commands.UserNotFound + :members: + +.. autoexception:: discord.ext.commands.ChannelNotFound + :members: + +.. autoexception:: discord.ext.commands.ChannelNotReadable + :members: + +.. autoexception:: discord.ext.commands.InvalidColour + :members: + +.. autoexception:: discord.ext.commands.RoleNotFound + :members: + +.. autoexception:: discord.ext.commands.InvalidInvite + :members: + +.. autoexception:: discord.ext.commands.EmojiNotFound + :members: + +.. autoexception:: discord.ext.commands.PartialEmojiConversionFailure + :members: + +.. autoexception:: discord.ext.commands.BadBooleanArgument + :members: + .. autoexception:: discord.ext.commands.MissingPermissions :members: @@ -393,6 +426,17 @@ Exception Hierarchy - :exc:`~.commands.MissingRequiredArgument` - :exc:`~.commands.TooManyArguments` - :exc:`~.commands.BadArgument` + - :exc:`~.commands.MessageNotFound` + - :exc:`~.commands.MemberNotFound` + - :exc:`~.commands.UserNotFound` + - :exc:`~.commands.ChannelNotFound` + - :exc:`~.commands.ChannelNotReadable` + - :exc:`~.commands.BadColourArgument` + - :exc:`~.commands.RoleNotFound` + - :exc:`~.commands.BadInviteArgument` + - :exc:`~.commands.EmojiNotFound` + - :exc:`~.commands.PartialEmojiConversionFailure` + - :exc:`~.commands.BadBooleanArgument` - :exc:`~.commands.BadUnionArgument` - :exc:`~.commands.ArgumentParsingError` - :exc:`~.commands.UnexpectedQuoteError` -- cgit v1.2.3