disagreement/docs/threads.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

420 B

Threads

Message.create_thread and TextChannel.create_thread let you start new threads. Use :class:AutoArchiveDuration to control when a thread is automatically archived.

from disagreement import AutoArchiveDuration

await message.create_thread(
    "discussion",
    auto_archive_duration=AutoArchiveDuration.DAY,
)

Next Steps