Browse Source
[commands] fix documented type for Command.checks
pull/6575/head
Sebastian Law
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
discord/ext/commands/core.py
|
|
@ -158,7 +158,7 @@ class Command(_BaseCommand): |
|
|
|
isn't one. |
|
|
|
cog: Optional[:class:`Cog`] |
|
|
|
The cog that this command belongs to. ``None`` if there isn't one. |
|
|
|
checks: List[Callable[..., :class:`bool`]] |
|
|
|
checks: List[Callable[[:class:`.Context`], :class:`bool`]] |
|
|
|
A list of predicates that verifies if the command could be executed |
|
|
|
with the given :class:`.Context` as the sole parameter. If an exception |
|
|
|
is necessary to be thrown to signal failure, then one inherited from |
|
|
|