@@ -556,6 +556,7 @@ async def create_thread(
556556 message : Absent [Snowflake_Type ] = MISSING ,
557557 thread_type : Absent [ChannelType ] = MISSING ,
558558 invitable : Absent [bool ] = MISSING ,
559+ rate_limit_per_user : Absent [int ] = MISSING ,
559560 auto_archive_duration : AutoArchiveDuration = AutoArchiveDuration .ONE_DAY ,
560561 reason : Absent [str ] = None ,
561562 ) -> "TYPE_THREAD_CHANNEL" :
@@ -567,6 +568,7 @@ async def create_thread(
567568 message: The message to connect this thread to. Required for news channel.
568569 thread_type: Is the thread private or public. Not applicable to news channel, it will always be GUILD_NEWS_THREAD.
569570 invitable: whether non-moderators can add other non-moderators to a thread. Only applicable when creating a private thread.
571+ rate_limit_per_user: The time users must wait between sending messages (0-21600).
570572 auto_archive_duration: Time before the thread will be automatically archived. Note 3 day and 7 day archive durations require the server to be boosted.
571573 reason: The reason for creating this thread.
572574
@@ -588,6 +590,7 @@ async def create_thread(
588590 name = name ,
589591 thread_type = thread_type ,
590592 invitable = invitable ,
593+ rate_limit_per_user = rate_limit_per_user ,
591594 auto_archive_duration = auto_archive_duration ,
592595 message_id = to_optional_snowflake (message ),
593596 reason = reason ,
@@ -1740,6 +1743,7 @@ async def create_public_thread(
17401743 self ,
17411744 name : str ,
17421745 auto_archive_duration : AutoArchiveDuration = AutoArchiveDuration .ONE_DAY ,
1746+ rate_limit_per_user : Absent [int ] = MISSING ,
17431747 reason : Absent [str ] = None ,
17441748 ) -> "GuildPublicThread" :
17451749 """
@@ -1748,6 +1752,7 @@ async def create_public_thread(
17481752 Args:
17491753 name: 1-100 character thread name.
17501754 auto_archive_duration: Time before the thread will be automatically archived. Note 3 day and 7 day archive durations require the server to be boosted.
1755+ rate_limit_per_user: The time users must wait between sending messages (0-21600).
17511756 reason: The reason for creating this thread.
17521757
17531758 Returns:
@@ -1758,6 +1763,7 @@ async def create_public_thread(
17581763 name = name ,
17591764 thread_type = ChannelType .GUILD_PUBLIC_THREAD ,
17601765 auto_archive_duration = auto_archive_duration ,
1766+ rate_limit_per_user = rate_limit_per_user ,
17611767 reason = reason ,
17621768 )
17631769
@@ -1766,14 +1772,16 @@ async def create_private_thread(
17661772 name : str ,
17671773 invitable : Absent [bool ] = MISSING ,
17681774 auto_archive_duration : AutoArchiveDuration = AutoArchiveDuration .ONE_DAY ,
1775+ rate_limit_per_user : Absent [int ] = MISSING ,
17691776 reason : Absent [str ] = None ,
17701777 ) -> "GuildPrivateThread" :
17711778 """
17721779 Creates a new private thread in this channel.
17731780
17741781 Args:
17751782 name: 1-100 character thread name.
1776- invitable: whether non-moderators can add other non-moderators to a thread.
1783+ invitable: Whether non-moderators can add other non-moderators to a thread.
1784+ rate_limit_per_user: The time users must wait between sending messages (0-21600).
17771785 auto_archive_duration: Time before the thread will be automatically archived. Note 3 day and 7 day archive durations require the server to be boosted.
17781786 reason: The reason for creating this thread.
17791787
@@ -1785,6 +1793,7 @@ async def create_private_thread(
17851793 name = name ,
17861794 thread_type = ChannelType .GUILD_PRIVATE_THREAD ,
17871795 invitable = invitable ,
1796+ rate_limit_per_user = rate_limit_per_user ,
17881797 auto_archive_duration = auto_archive_duration ,
17891798 reason = reason ,
17901799 )
0 commit comments