mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-13 01:09:50 +00:00
Document auto_archive_duration accepted values
This commit is contained in:
parent
d26dbf3a7a
commit
3644f7849c
discord
@ -729,6 +729,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.
|
||||
@ -2548,6 +2550,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
|
||||
|
@ -1215,6 +1215,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user