Pass BotT type argument to DeferTyping

This commit is contained in:
Willi
2025-02-19 17:14:06 -05:00
committed by GitHub
parent 2cf1babb4a
commit 470323493e
+1 -1
View File
@@ -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``.