Skip to content

Commit

Permalink
Pass BotT type argument to DeferTyping
Browse files Browse the repository at this point in the history
  • Loading branch information
itswilliboy authored Feb 19, 2025
1 parent 2cf1bab commit 4703234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/ext/commands/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ async def reply(self, content: Optional[str] = None, **kwargs: Any) -> Message:
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``.
Expand Down

0 comments on commit 4703234

Please sign in to comment.