Browse Source

Document auto_archive_duration accepted values

pull/9257/head
owocado 2 years ago
committed by GitHub
parent
commit
3644f7849c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      discord/channel.py
  2. 2
      discord/message.py

4
discord/channel.py

@ -729,6 +729,8 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
auto_archive_duration: :class:`int` 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 archived for inactivity.
If not provided, the channel's default auto archive duration is used. 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`] type: Optional[:class:`ChannelType`]
The type of thread to create. If a ``message`` is passed then this parameter 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. is ignored, as a thread created with a message is always a public thread.
@ -2548,6 +2550,8 @@ class ForumChannel(discord.abc.GuildChannel, Hashable):
auto_archive_duration: :class:`int` 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 archived for inactivity.
If not provided, the channel's default auto archive duration is used. 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`] slowmode_delay: Optional[:class:`int`]
Specifies the slowmode rate limit for user in this channel, in seconds. Specifies the slowmode rate limit for user in this channel, in seconds.
The maximum value possible is ``21600``. By default no slowmode rate limit The maximum value possible is ``21600``. By default no slowmode rate limit

2
discord/message.py

@ -1215,6 +1215,8 @@ class PartialMessage(Hashable):
auto_archive_duration: :class:`int` 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 archived for inactivity.
If not provided, the channel's default auto archive duration is used. 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`] slowmode_delay: Optional[:class:`int`]
Specifies the slowmode rate limit for user in this channel, in seconds. Specifies the slowmode rate limit for user in this channel, in seconds.
The maximum value possible is ``21600``. By default no slowmode rate limit The maximum value possible is ``21600``. By default no slowmode rate limit

Loading…
Cancel
Save