Browse Source

[commands] fix documented type for Command.checks

pull/6575/head
Sebastian Law 4 years ago
committed by GitHub
parent
commit
a131e11c5e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/ext/commands/core.py

2
discord/ext/commands/core.py

@ -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…
Cancel
Save