mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-09 19:24:15 +00:00
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:
@ -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]:
|
||||
|
Reference in New Issue
Block a user