From 641dcf61a56eeb229f1fc973cdc27fc3f3516483 Mon Sep 17 00:00:00 2001 From: Bobby-McBobface <54757965+Bobby-McBobface@users.noreply.github.com> Date: Fri, 19 Aug 2022 20:15:14 +0000 Subject: [PATCH] [commands] Fix incorrect docs in dynamic_cooldown Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com> --- discord/ext/commands/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 0a75ddfff..44ddeaf40 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -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.