From 470323493e7e3b790cb1f9d74bf45dd02df5f578 Mon Sep 17 00:00:00 2001 From: Willi <83978878+itswilliboy@users.noreply.github.com> Date: Wed, 19 Feb 2025 23:14:06 +0100 Subject: [PATCH] Pass BotT type argument to DeferTyping --- discord/ext/commands/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index 933039735..7198c1206 100644 --- a/discord/ext/commands/context.py +++ b/discord/ext/commands/context.py @@ -751,7 +751,7 @@ class Context(discord.abc.Messageable, Generic[BotT]): else: return await self.send(content, **kwargs) - def typing(self, *, ephemeral: bool = False) -> Union[Typing, DeferTyping]: + def typing(self, *, ephemeral: bool = False) -> Union[Typing, DeferTyping[BotT]]: """Returns an asynchronous context manager that allows you to send a typing indicator to the destination for an indefinite period of time, or 10 seconds if the context manager is called using ``await``.