@@ -1126,7 +1126,7 @@ def _create_channel(
11261126 self ,
11271127 name : str ,
11281128 channel_type : Literal [ChannelType .text ],
1129- overwrites : Mapping [Union [Role , Member ], PermissionOverwrite ] = ...,
1129+ overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = ...,
11301130 category : Optional [Snowflake ] = ...,
11311131 ** options : Any ,
11321132 ) -> Coroutine [Any , Any , TextChannelPayload ]:
@@ -1137,7 +1137,7 @@ def _create_channel(
11371137 self ,
11381138 name : str ,
11391139 channel_type : Literal [ChannelType .voice ],
1140- overwrites : Mapping [Union [Role , Member ], PermissionOverwrite ] = ...,
1140+ overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = ...,
11411141 category : Optional [Snowflake ] = ...,
11421142 ** options : Any ,
11431143 ) -> Coroutine [Any , Any , VoiceChannelPayload ]:
@@ -1148,7 +1148,7 @@ def _create_channel(
11481148 self ,
11491149 name : str ,
11501150 channel_type : Literal [ChannelType .stage_voice ],
1151- overwrites : Mapping [Union [Role , Member ], PermissionOverwrite ] = ...,
1151+ overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = ...,
11521152 category : Optional [Snowflake ] = ...,
11531153 ** options : Any ,
11541154 ) -> Coroutine [Any , Any , StageChannelPayload ]:
@@ -1159,7 +1159,7 @@ def _create_channel(
11591159 self ,
11601160 name : str ,
11611161 channel_type : Literal [ChannelType .category ],
1162- overwrites : Mapping [Union [Role , Member ], PermissionOverwrite ] = ...,
1162+ overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = ...,
11631163 category : Optional [Snowflake ] = ...,
11641164 ** options : Any ,
11651165 ) -> Coroutine [Any , Any , CategoryChannelPayload ]:
@@ -1170,7 +1170,7 @@ def _create_channel(
11701170 self ,
11711171 name : str ,
11721172 channel_type : Literal [ChannelType .news ],
1173- overwrites : Mapping [Union [Role , Member ], PermissionOverwrite ] = ...,
1173+ overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = ...,
11741174 category : Optional [Snowflake ] = ...,
11751175 ** options : Any ,
11761176 ) -> Coroutine [Any , Any , NewsChannelPayload ]:
@@ -1181,7 +1181,7 @@ def _create_channel(
11811181 self ,
11821182 name : str ,
11831183 channel_type : Literal [ChannelType .news , ChannelType .text ],
1184- overwrites : Mapping [Union [Role , Member ], PermissionOverwrite ] = ...,
1184+ overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = ...,
11851185 category : Optional [Snowflake ] = ...,
11861186 ** options : Any ,
11871187 ) -> Coroutine [Any , Any , Union [TextChannelPayload , NewsChannelPayload ]]:
@@ -1192,7 +1192,7 @@ def _create_channel(
11921192 self ,
11931193 name : str ,
11941194 channel_type : Literal [ChannelType .forum ],
1195- overwrites : Mapping [Union [Role , Member ], PermissionOverwrite ] = ...,
1195+ overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = ...,
11961196 category : Optional [Snowflake ] = ...,
11971197 ** options : Any ,
11981198 ) -> Coroutine [Any , Any , ForumChannelPayload ]:
@@ -1203,7 +1203,7 @@ def _create_channel(
12031203 self ,
12041204 name : str ,
12051205 channel_type : ChannelType ,
1206- overwrites : Mapping [Union [Role , Member ], PermissionOverwrite ] = ...,
1206+ overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = ...,
12071207 category : Optional [Snowflake ] = ...,
12081208 ** options : Any ,
12091209 ) -> Coroutine [Any , Any , GuildChannelPayload ]:
@@ -1213,7 +1213,7 @@ def _create_channel(
12131213 self ,
12141214 name : str ,
12151215 channel_type : ChannelType ,
1216- overwrites : Mapping [Union [Role , Member ], PermissionOverwrite ] = MISSING ,
1216+ overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = MISSING ,
12171217 category : Optional [Snowflake ] = None ,
12181218 ** options : Any ,
12191219 ) -> Coroutine [Any , Any , GuildChannelPayload ]:
@@ -1253,7 +1253,7 @@ async def create_text_channel(
12531253 topic : str = MISSING ,
12541254 slowmode_delay : int = MISSING ,
12551255 nsfw : bool = MISSING ,
1256- overwrites : Mapping [Union [Role , Member ], PermissionOverwrite ] = MISSING ,
1256+ overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = MISSING ,
12571257 default_auto_archive_duration : int = MISSING ,
12581258 default_thread_slowmode_delay : int = MISSING ,
12591259 ) -> TextChannel :
@@ -1395,7 +1395,7 @@ async def create_voice_channel(
13951395 user_limit : int = MISSING ,
13961396 rtc_region : Optional [str ] = MISSING ,
13971397 video_quality_mode : VideoQualityMode = MISSING ,
1398- overwrites : Mapping [Union [Role , Member ], PermissionOverwrite ] = MISSING ,
1398+ overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = MISSING ,
13991399 ) -> VoiceChannel :
14001400 """|coro|
14011401
@@ -1488,7 +1488,7 @@ async def create_stage_channel(
14881488 user_limit : int = MISSING ,
14891489 rtc_region : Optional [str ] = MISSING ,
14901490 video_quality_mode : VideoQualityMode = MISSING ,
1491- overwrites : Mapping [Union [Role , Member ], PermissionOverwrite ] = MISSING ,
1491+ overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = MISSING ,
14921492 ) -> StageChannel :
14931493 """|coro|
14941494
@@ -1581,7 +1581,7 @@ async def create_category(
15811581 self ,
15821582 name : str ,
15831583 * ,
1584- overwrites : Mapping [Union [Role , Member ], PermissionOverwrite ] = MISSING ,
1584+ overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = MISSING ,
15851585 reason : Optional [str ] = None ,
15861586 position : int = MISSING ,
15871587 ) -> CategoryChannel :
@@ -1636,7 +1636,7 @@ async def create_forum(
16361636 category : Optional [CategoryChannel ] = None ,
16371637 slowmode_delay : int = MISSING ,
16381638 nsfw : bool = MISSING ,
1639- overwrites : Mapping [Union [Role , Member ], PermissionOverwrite ] = MISSING ,
1639+ overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = MISSING ,
16401640 reason : Optional [str ] = None ,
16411641 default_auto_archive_duration : int = MISSING ,
16421642 default_thread_slowmode_delay : int = MISSING ,
0 commit comments