|
30 | 30 | from discord import utils
|
31 | 31 |
|
32 | 32 | from .abc import Messageable, _purge_messages_helper
|
33 |
| -from .enums import ChannelType, try_enum |
| 33 | +from .enums import ( |
| 34 | + ChannelType, |
| 35 | +) |
| 36 | +from .enums import ThreadArchiveDuration as ThreadArchiveDurationEnum |
| 37 | +from .enums import ( |
| 38 | + try_enum, |
| 39 | +) |
34 | 40 | from .errors import ClientException
|
35 | 41 | from .flags import ChannelFlags
|
36 | 42 | from .mixins import Hashable
|
@@ -575,7 +581,7 @@ async def edit(
|
575 | 581 | locked: bool | utils.Undefined = MISSING,
|
576 | 582 | invitable: bool | utils.Undefined = MISSING,
|
577 | 583 | slowmode_delay: int | utils.Undefined = MISSING,
|
578 |
| - auto_archive_duration: ThreadArchiveDuration | utils.Undefined = MISSING, |
| 584 | + auto_archive_duration: ThreadArchiveDuration | ThreadArchiveDurationEnum | utils.Undefined = MISSING, |
579 | 585 | pinned: bool | utils.Undefined = MISSING,
|
580 | 586 | applied_tags: list[ForumTag] | utils.Undefined = MISSING,
|
581 | 587 | reason: str | None = None,
|
@@ -605,6 +611,7 @@ async def edit(
|
605 | 611 | auto_archive_duration: :class:`int`
|
606 | 612 | The new duration in minutes before a thread is automatically archived for inactivity.
|
607 | 613 | Must be one of ``60``, ``1440``, ``4320``, or ``10080``.
|
| 614 | + :class:`ThreadArchiveDuration` can be used alternatively. |
608 | 615 | slowmode_delay: :class:`int`
|
609 | 616 | Specifies the slowmode rate limit for user in this thread, in seconds.
|
610 | 617 | A value of ``0`` disables slowmode. The maximum value possible is ``21600``.
|
|
0 commit comments