Adjust examples to reflect the new top-level exposure of classes and enums, such as `Client`, `Permissions`, `Embed`, and `Button`, making imports simpler.
420 B
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,
)