From 0adef0ec8979a9f6c52d8062c8cdbe021f6810ac Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 18 Apr 2023 01:08:52 -0400 Subject: [PATCH] Update auto_archive_duration documentation Fix #9351 --- discord/app_commands/models.py | 2 +- discord/channel.py | 4 ++-- discord/message.py | 2 +- discord/threads.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/discord/app_commands/models.py b/discord/app_commands/models.py index ef2e1849d..3e9d250b2 100644 --- a/discord/app_commands/models.py +++ b/discord/app_commands/models.py @@ -673,7 +673,7 @@ class AppCommandThread(Hashable): archiver_id: Optional[:class:`int`] The user's ID that archived this thread. auto_archive_duration: :class:`int` - The duration in minutes until the thread is automatically archived due to inactivity. + The duration in minutes until the thread is automatically hidden from the channel list. Usually a value of 60, 1440, 4320 and 10080. archive_timestamp: :class:`datetime.datetime` An aware timestamp of when the thread's archived status was last updated in UTC. diff --git a/discord/channel.py b/discord/channel.py index 3c93832f3..cd5490b2e 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -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. diff --git a/discord/message.py b/discord/message.py index 8c9b732f5..c96c7e022 100644 --- a/discord/message.py +++ b/discord/message.py @@ -1215,7 +1215,7 @@ class PartialMessage(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. diff --git a/discord/threads.py b/discord/threads.py index c5551a55a..b47c189d2 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -122,7 +122,7 @@ class Thread(Messageable, Hashable): archiver_id: Optional[:class:`int`] The user's ID that archived this thread. auto_archive_duration: :class:`int` - The duration in minutes until the thread is automatically archived due to inactivity. + The duration in minutes until the thread is automatically hidden from the channel list. Usually a value of 60, 1440, 4320 and 10080. archive_timestamp: :class:`datetime.datetime` An aware timestamp of when the thread's archived status was last updated in UTC. @@ -608,7 +608,7 @@ class Thread(Messageable, Hashable): Whether non-moderators can add other non-moderators to this thread. Only available for private threads. auto_archive_duration: :class:`int` - The new duration in minutes before a thread is automatically archived for inactivity. + The new duration in minutes before a thread is automatically hidden from the channel list. Must be one of ``60``, ``1440``, ``4320``, or ``10080``. slowmode_delay: :class:`int` Specifies the slowmode rate limit for user in this thread, in seconds.