[commands] Fix incorrect docs in dynamic_cooldown

Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
Bobby-McBobface 2022-08-19 20:15:14 +00:00 committed by GitHub
parent 59677c6738
commit 641dcf61a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.