[commands] fix documented type for Command.checks
This commit is contained in:
parent
a06d00f554
commit
a131e11c5e
@ -158,7 +158,7 @@ class Command(_BaseCommand):
|
|||||||
isn't one.
|
isn't one.
|
||||||
cog: Optional[:class:`Cog`]
|
cog: Optional[:class:`Cog`]
|
||||||
The cog that this command belongs to. ``None`` if there isn't one.
|
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
|
A list of predicates that verifies if the command could be executed
|
||||||
with the given :class:`.Context` as the sole parameter. If an exception
|
with the given :class:`.Context` as the sole parameter. If an exception
|
||||||
is necessary to be thrown to signal failure, then one inherited from
|
is necessary to be thrown to signal failure, then one inherited from
|
||||||
|
Loading…
x
Reference in New Issue
Block a user