From 74ea102fef3246329f52cd144387482f1b79d15d Mon Sep 17 00:00:00 2001 From: owocado <24418520+owocado@users.noreply.github.com> Date: Thu, 23 Feb 2023 17:53:22 +0530 Subject: [PATCH] Document auto_archive_duration accepted values --- discord/channel.py | 4 ++++ discord/message.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/discord/channel.py b/discord/channel.py index d2e9f7095..ae1d027fc 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -705,6 +705,8 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): auto_archive_duration: :class:`int` The duration in minutes before a thread is automatically archived for inactivity. If not provided, the channel's default auto archive duration is used. + + Must be one of ``60``, ``1440``, ``4320``, or ``10080``, if provided. type: Optional[:class:`ChannelType`] The type of thread to create. If a ``message`` is passed then this parameter is ignored, as a thread created with a message is always a public thread. @@ -2493,6 +2495,8 @@ class ForumChannel(discord.abc.GuildChannel, Hashable): auto_archive_duration: :class:`int` The duration in minutes before a thread is automatically archived for inactivity. If not provided, the channel's default auto archive duration is used. + + Must be one of ``60``, ``1440``, ``4320``, or ``10080``, if provided. slowmode_delay: Optional[:class:`int`] Specifies the slowmode rate limit for user in this channel, in seconds. The maximum value possible is ``21600``. By default no slowmode rate limit diff --git a/discord/message.py b/discord/message.py index a169a5008..8f1f0d5c7 100644 --- a/discord/message.py +++ b/discord/message.py @@ -1072,6 +1072,8 @@ class PartialMessage(Hashable): auto_archive_duration: :class:`int` The duration in minutes before a thread is automatically archived for inactivity. If not provided, the channel's default auto archive duration is used. + + Must be one of ``60``, ``1440``, ``4320``, or ``10080``, if provided. slowmode_delay: Optional[:class:`int`] Specifies the slowmode rate limit for user in this channel, in seconds. The maximum value possible is ``21600``. By default no slowmode rate limit