Pass BotT type argument to DeferTyping

This commit is contained in:
Willi
2025-02-19 23:14:06 +01:00
committed by GitHub
parent 2cf1babb4a
commit 470323493e

View File

@ -751,7 +751,7 @@ class Context(discord.abc.Messageable, Generic[BotT]):
else: else:
return await self.send(content, **kwargs) 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 """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 the destination for an indefinite period of time, or 10 seconds if the context manager
is called using ``await``. is called using ``await``.