@@ -868,6 +868,8 @@ async def create_thread(
868
868
message : Snowflake | None = None ,
869
869
auto_archive_duration : ThreadArchiveDuration = MISSING ,
870
870
type : ChannelType | None = None ,
871
+ slowmode_delay : int | None = None ,
872
+ invitable : bool | None = None ,
871
873
reason : str | None = None ,
872
874
) -> Thread :
873
875
"""|coro|
@@ -894,6 +896,12 @@ async def create_thread(
894
896
The type of thread to create. If a ``message`` is passed then this parameter
895
897
is ignored, as a thread created with a message is always a public thread.
896
898
By default, this creates a private thread if this is ``None``.
899
+ slowmode_delay: Optional[:class:`int`]
900
+ Specifies the slowmode rate limit for users in this thread, in seconds.
901
+ A value of ``0`` disables slowmode. The maximum value possible is ``21600``.
902
+ invitable: Optional[:class:`bool`]
903
+ Whether non-moderators can add other non-moderators to this thread.
904
+ Only available for private threads, where it defaults to True.
897
905
reason: :class:`str`
898
906
The reason for creating a new thread. Shows up on the audit log.
899
907
@@ -920,6 +928,8 @@ async def create_thread(
920
928
auto_archive_duration = auto_archive_duration
921
929
or self .default_auto_archive_duration ,
922
930
type = type .value ,
931
+ rate_limit_per_user = slowmode_delay or 0 ,
932
+ invitable = invitable ,
923
933
reason = reason ,
924
934
)
925
935
else :
@@ -929,6 +939,7 @@ async def create_thread(
929
939
name = name ,
930
940
auto_archive_duration = auto_archive_duration
931
941
or self .default_auto_archive_duration ,
942
+ rate_limit_per_user = slowmode_delay or 0 ,
932
943
reason = reason ,
933
944
)
934
945
0 commit comments