Browse Source

Update auto_archive_duration documentation

Fix #9351
pull/10109/head
Rapptz 2 years ago
committed by dolfies
parent
commit
bc4b1cad6d
  1. 4
      discord/channel.py
  2. 2
      discord/message.py
  3. 4
      discord/threads.py

4
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.

2
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.

4
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.

Loading…
Cancel
Save