diff options
| author | Sebastian Law <[email protected]> | 2021-03-24 05:24:14 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-24 08:24:14 -0400 |
| commit | a131e11c5e15b4720deff025464e20d5d21a4b83 (patch) | |
| tree | ad019c7df72f8a022cf7cc2c087fd4143c620bb0 | |
| parent | Make `await` text appear in async Member method docs (diff) | |
| download | discord.py-a131e11c5e15b4720deff025464e20d5d21a4b83.tar.xz discord.py-a131e11c5e15b4720deff025464e20d5d21a4b83.zip | |
[commands] fix documented type for Command.checks
| -rw-r--r-- | discord/ext/commands/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 16c1276c..40c7eaf8 100644 --- a/discord/ext/commands/core.py +++ b/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 |