[commands] BadBooleanArgument -> BadBoolArgument
This commit is contained in:
		@@ -107,7 +107,7 @@ def _convert_to_bool(argument):
 | 
			
		||||
    elif lowered in ('no', 'n', 'false', 'f', '0', 'disable', 'off'):
 | 
			
		||||
        return False
 | 
			
		||||
    else:
 | 
			
		||||
        raise BadBooleanArgument(lowered)
 | 
			
		||||
        raise BadBoolArgument(lowered)
 | 
			
		||||
 | 
			
		||||
class _CaseInsensitiveDict(dict):
 | 
			
		||||
    def __contains__(self, k):
 | 
			
		||||
 
 | 
			
		||||
@@ -53,7 +53,7 @@ __all__ = (
 | 
			
		||||
    'BadInviteArgument',
 | 
			
		||||
    'EmojiNotFound',
 | 
			
		||||
    'PartialEmojiConversionFailure',
 | 
			
		||||
    'BadBooleanArgument',
 | 
			
		||||
    'BadBoolArgument',
 | 
			
		||||
    'MissingRole',
 | 
			
		||||
    'BotMissingRole',
 | 
			
		||||
    'MissingAnyRole',
 | 
			
		||||
@@ -373,7 +373,7 @@ class PartialEmojiConversionFailure(BadArgument):
 | 
			
		||||
        self.argument = argument
 | 
			
		||||
        super().__init__('Couldn\'t convert "{}" to PartialEmoji.'.format(argument))
 | 
			
		||||
 | 
			
		||||
class BadBooleanArgument(BadArgument):
 | 
			
		||||
class BadBoolArgument(BadArgument):
 | 
			
		||||
    """Exception raised when a boolean argument was not convertable.
 | 
			
		||||
 | 
			
		||||
    This inherits from :exc:`BadArgument`
 | 
			
		||||
 
 | 
			
		||||
@@ -368,7 +368,7 @@ Exceptions
 | 
			
		||||
.. autoexception:: discord.ext.commands.PartialEmojiConversionFailure
 | 
			
		||||
    :members:
 | 
			
		||||
 | 
			
		||||
.. autoexception:: discord.ext.commands.BadBooleanArgument
 | 
			
		||||
.. autoexception:: discord.ext.commands.BadBoolArgument
 | 
			
		||||
    :members:
 | 
			
		||||
 | 
			
		||||
.. autoexception:: discord.ext.commands.MissingPermissions
 | 
			
		||||
@@ -436,7 +436,7 @@ Exception Hierarchy
 | 
			
		||||
                    - :exc:`~.commands.BadInviteArgument`
 | 
			
		||||
                    - :exc:`~.commands.EmojiNotFound`
 | 
			
		||||
                    - :exc:`~.commands.PartialEmojiConversionFailure`
 | 
			
		||||
                    - :exc:`~.commands.BadBooleanArgument`
 | 
			
		||||
                    - :exc:`~.commands.BadBoolArgument`
 | 
			
		||||
                - :exc:`~.commands.BadUnionArgument`
 | 
			
		||||
                - :exc:`~.commands.ArgumentParsingError`
 | 
			
		||||
                    - :exc:`~.commands.UnexpectedQuoteError`
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user