diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index d7ef57aab..a4c4d621f 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -2378,6 +2378,10 @@ def cooldown( .. versionchanged:: 1.7 Callables are now supported for custom bucket types. + + .. versionchanged:: 2.0 + When passing a callable, it now needs to accept :class:`.Context` + rather than :class:`~discord.Message` as its only argument. """ def decorator(func: Union[Command, CoroFunc]) -> Union[Command, CoroFunc]: diff --git a/docs/migrating.rst b/docs/migrating.rst index dc047a733..4e7a7f0be 100644 --- a/docs/migrating.rst +++ b/docs/migrating.rst @@ -82,7 +82,6 @@ The following have been changed to :func:`runtime-checkable