From 80ffe65cc5026cb8ce10cd06a37f8d8709f040ce Mon Sep 17 00:00:00 2001 From: ItsWilliboy <83978878+itswilliboy@users.noreply.github.com> Date: Tue, 18 Feb 2025 15:22:56 +0100 Subject: [PATCH] Pass `BotT` type argument to `DeferTyping` --- discord/ext/commands/context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index 933039735..0efa8da9d 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``. @@ -789,7 +789,7 @@ class Context(discord.abc.Messageable, Generic[BotT]): """ if self.interaction is None: return Typing(self) - return DeferTyping(self, ephemeral=ephemeral) + return DeferTyping[BotT](self, ephemeral=ephemeral) async def defer(self, *, ephemeral: bool = False) -> None: """|coro|