mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 16:51:59 +00:00
[commands] Fix typing error with CheckAnyFailure
This commit is contained in:
parent
c604f853ea
commit
2fb309a463
@ -248,9 +248,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…
x
Reference in New Issue
Block a user