Update auto_archive_duration documentation

Fix #9351
This commit is contained in:
Rapptz committed 2023-04-18 06:03:48 -04:00
1 parent 8991525215
commit 0adef0ec89
4 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -737,7 +737,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
If ``None`` is passed then a private thread is created.
Defaults to ``None``.
auto_archive_duration: :class:`int`
The duration in minutes before a thread is automatically archived for inactivity.
The duration in minutes before a thread is automatically hidden from the channel list.
If not provided, the channel's default auto archive duration is used.
Must be one of ``60``, ``1440``, ``4320``, or ``10080``, if provided.
@@ -2607,7 +2607,7 @@ class ForumChannel(discord.abc.GuildChannel, Hashable):
name: :class:`str`
The name of the thread.
auto_archive_duration: :class:`int`
The duration in minutes before a thread is automatically archived for inactivity.
The duration in minutes before a thread is automatically hidden from the channel list.
If not provided, the channel's default auto archive duration is used.
Must be one of ``60``, ``1440``, ``4320``, or ``10080``, if provided.