3737 AuditLogEventType ,
3838 AutoModEvent ,
3939 AutoModTriggerType ,
40+ ForumLayoutType ,
4041)
4142from .snowflake import to_snowflake , Snowflake_Type , to_optional_snowflake , to_snowflake_list
4243
@@ -895,6 +896,7 @@ async def create_channel(
895896 user_limit : int = 0 ,
896897 rate_limit_per_user : int = 0 ,
897898 reason : Absent [Optional [str ]] = MISSING ,
899+ ** kwargs : dict ,
898900 ) -> "models.TYPE_GUILD_CHANNEL" :
899901 """
900902 Create a guild channel, allows for explicit channel type setting.
@@ -911,6 +913,7 @@ async def create_channel(
911913 user_limit: The max users that can be in this channel, only for voice
912914 rate_limit_per_user: The time users must wait between sending messages
913915 reason: The reason for creating this channel
916+ kwargs: Additional keyword arguments to pass to the channel creation
914917
915918 Returns:
916919 The newly created channel.
@@ -929,6 +932,7 @@ async def create_channel(
929932 user_limit ,
930933 rate_limit_per_user ,
931934 reason ,
935+ ** kwargs ,
932936 )
933937 return self ._client .cache .place_channel_data (channel_data )
934938
@@ -985,6 +989,7 @@ async def create_forum_channel(
985989 category : Union [Snowflake_Type , "models.GuildCategory" ] = None ,
986990 nsfw : bool = False ,
987991 rate_limit_per_user : int = 0 ,
992+ layout : ForumLayoutType = ForumLayoutType .NOT_SET ,
988993 reason : Absent [Optional [str ]] = MISSING ,
989994 ) -> "models.GuildForum" :
990995 """
@@ -998,6 +1003,7 @@ async def create_forum_channel(
9981003 category: The category this forum channel should be within
9991004 nsfw: Should this forum be marked nsfw
10001005 rate_limit_per_user: The time users must wait between sending messages
1006+ layout: The layout of the forum channel
10011007 reason: The reason for creating this channel
10021008
10031009 Returns:
@@ -1013,6 +1019,7 @@ async def create_forum_channel(
10131019 category = category ,
10141020 nsfw = nsfw ,
10151021 rate_limit_per_user = rate_limit_per_user ,
1022+ default_forum_layout = layout ,
10161023 reason = reason ,
10171024 )
10181025
0 commit comments