Adjust examples to reflect the new top-level exposure of classes and enums, such as `Client`, `Permissions`, `Embed`, and `Button`, making imports simpler.
19 lines
420 B
Markdown
19 lines
420 B
Markdown
# Threads
|
|
|
|
`Message.create_thread` and `TextChannel.create_thread` let you start new threads.
|
|
Use :class:`AutoArchiveDuration` to control when a thread is automatically archived.
|
|
|
|
```python
|
|
from disagreement import AutoArchiveDuration
|
|
|
|
await message.create_thread(
|
|
"discussion",
|
|
auto_archive_duration=AutoArchiveDuration.DAY,
|
|
)
|
|
```
|
|
|
|
## Next Steps
|
|
|
|
- [Message History](message_history.md)
|
|
- [Caching](caching.md)
|