From bc4b1cad6df9631858540673d1ae5e071cb7de2b 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/channel.py | 4 ++-- discord/message.py | 2 +- discord/threads.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/discord/channel.py b/discord/channel.py index a7e1b10fd..be8849b3a 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -794,7 +794,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. @@ -2759,7 +2759,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 be1fd52dc..cea83e2c7 100644 --- a/discord/message.py +++ b/discord/message.py @@ -1077,7 +1077,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 72d0cf1ba..2f9161004 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -119,7 +119,7 @@ class Thread(Messageable, Hashable): Whether non-moderators can add other non-moderators to this thread. This is always ``True`` for public threads. 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. @@ -669,7 +669,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.