Browse Source

[commands] Fix typing error with CheckAnyFailure

pull/10109/head
Maya 3 years ago
committed by dolfies
parent
commit
e73c1a3b9e
  1. 6
      discord/ext/commands/errors.py

6
discord/ext/commands/errors.py

@ -246,9 +246,9 @@ class CheckAnyFailure(CheckFailure):
A list of check predicates that failed.
"""
def __init__(self, checks: List[CheckFailure], errors: List[Callable[[Context[BotT]], bool]]) -> None:
self.checks: List[CheckFailure] = checks
self.errors: List[Callable[[Context[BotT]], bool]] = errors
def __init__(self, checks: List[Callable[[Context[BotT]], bool]], errors: List[CheckFailure]) -> None:
self.checks: List[Callable[[Context[BotT]], bool]] = checks
self.errors: List[CheckFailure] = errors
super().__init__('You do not have permission to run this command.')

Loading…
Cancel
Save