Fix migration guide docs for abc.PrivateChannel and cooldown()

* Move PrivateChannel ABC change to proper subsection in migration guide
* Add change to the accepted callables in cooldown() to migration guide
This commit is contained in:
Jakub Kuczys
2022-10-01 09:16:01 +02:00
committed by GitHub
parent 6725f329b2
commit 7c218b3833
2 changed files with 7 additions and 1 deletions

View File

@ -2453,6 +2453,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]: