mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
[commands] Fix incorrect docs in dynamic_cooldown
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
parent
59677c6738
commit
641dcf61a5
@ -2435,7 +2435,7 @@ def dynamic_cooldown(
|
||||
"""A decorator that adds a dynamic cooldown to a :class:`.Command`
|
||||
|
||||
This differs from :func:`.cooldown` in that it takes a function that
|
||||
accepts a single parameter of type :class:`.discord.Message` and must
|
||||
accepts a single parameter of type :class:`.Context` and must
|
||||
return a :class:`~discord.app_commands.Cooldown` or ``None``.
|
||||
If ``None`` is returned then that cooldown is effectively bypassed.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user