disagreement/docs/typing_indicator.md
Slipstreamm 9237d12a24 docs(imports): Update import paths in documentation examples
Adjust examples to reflect the new top-level exposure of classes and enums, such as `Client`, `Permissions`, `Embed`, and `Button`, making imports simpler.
2025-06-14 18:44:04 -06:00

395 B

Typing Indicator

The library exposes an async context manager to send the typing indicator for a channel.

import asyncio
from disagreement import Client

client = Client(token="YOUR_TOKEN")

async def indicate(channel_id: str):
    async with client.typing(channel_id):
        await long_running_task()

This uses the underlying HTTP endpoint /channels/{channel_id}/typing.