@@ -1176,7 +1176,7 @@ async def create_text_channel(
1176
1176
1177
1177
default_thread_slowmode_delay: Optional[:class:`int`]
1178
1178
The initial slowmode delay to set on newly created threads in this channel.
1179
-
1179
+
1180
1180
.. versionadded:: 2.7
1181
1181
1182
1182
default_auto_archive_duration: :class:`int`
@@ -1231,10 +1231,10 @@ async def create_text_channel(
1231
1231
1232
1232
if nsfw is not MISSING :
1233
1233
options ["nsfw" ] = nsfw
1234
-
1234
+
1235
1235
if default_thread_slowmode_delay is not MISSING :
1236
1236
options ["default_thread_slowmode_delay" ] = default_thread_slowmode_delay
1237
-
1237
+
1238
1238
if default_auto_archive_duration is not MISSING :
1239
1239
options ["default_auto_archive_duration" ] = default_auto_archive_duration
1240
1240
@@ -1303,12 +1303,12 @@ async def create_voice_channel(
1303
1303
slowmode_delay: :class:`int`
1304
1304
Specifies the slowmode rate limit for user in this channel, in seconds.
1305
1305
The maximum value possible is `21600`.
1306
-
1306
+
1307
1307
.. versionadded:: 2.7
1308
-
1308
+
1309
1309
nsfw: :class:`bool`
1310
1310
To mark the channel as NSFW or not.
1311
-
1311
+
1312
1312
.. versionadded:: 2.7
1313
1313
1314
1314
Returns
@@ -1346,7 +1346,7 @@ async def create_voice_channel(
1346
1346
1347
1347
if nsfw is not MISSING :
1348
1348
options ["nsfw" ] = nsfw
1349
-
1349
+
1350
1350
data = await self ._create_channel (
1351
1351
name ,
1352
1352
overwrites = overwrites ,
@@ -1401,37 +1401,36 @@ async def create_stage_channel(
1401
1401
reason: Optional[:class:`str`]
1402
1402
The reason for creating this channel. Shows up on the audit log.
1403
1403
1404
-
1405
1404
bitrate: :class:`int`
1406
1405
The channel's preferred audio bitrate in bits per second.
1407
-
1406
+
1408
1407
.. versionadded:: 2.7
1409
-
1408
+
1410
1409
user_limit: :class:`int`
1411
1410
The channel's limit for number of members that can be in a voice channel.
1412
-
1411
+
1413
1412
.. versionadded:: 2.7
1414
-
1413
+
1415
1414
rtc_region: Optional[:class:`VoiceRegion`]
1416
1415
The region for the voice channel's voice communication.
1417
1416
A value of ``None`` indicates automatic voice region detection.
1418
-
1417
+
1419
1418
.. versionadded:: 2.7
1420
-
1419
+
1421
1420
video_quality_mode: :class:`VideoQualityMode`
1422
1421
The camera video quality for the voice channel's participants.
1423
-
1422
+
1424
1423
.. versionadded:: 2.7
1425
-
1424
+
1426
1425
slowmode_delay: :class:`int`
1427
1426
Specifies the slowmode rate limit for user in this channel, in seconds.
1428
1427
The maximum value possible is `21600`.
1429
-
1428
+
1430
1429
.. versionadded:: 2.7
1431
-
1430
+
1432
1431
nsfw: :class:`bool`
1433
1432
To mark the channel as NSFW or not.
1434
-
1433
+
1435
1434
.. versionadded:: 2.7
1436
1435
1437
1436
Returns
@@ -1553,24 +1552,24 @@ async def create_forum_channel(
1553
1552
1554
1553
available_tags: List[:class:`ForumTag`]
1555
1554
The set of tags that can be used in a forum channel.
1556
-
1555
+
1557
1556
.. versionadded:: 2.7
1558
-
1557
+
1559
1558
default_sort_order: Optional[:class:`SortOrder`]
1560
1559
The default sort order type used to order posts in this channel.
1561
-
1560
+
1562
1561
.. versionadded:: 2.7
1563
-
1562
+
1564
1563
default_thread_slowmode_delay: Optional[:class:`int`]
1565
1564
The initial slowmode delay to set on newly created threads in this channel.
1566
-
1565
+
1567
1566
.. versionadded:: 2.7
1568
1567
1569
1568
default_auto_archive_duration: :class:`int`
1570
1569
The default auto archive duration in minutes for threads created in this channel.
1571
1570
1572
1571
.. versionadded:: 2.7
1573
-
1572
+
1574
1573
Returns
1575
1574
-------
1576
1575
:class:`ForumChannel`
@@ -1609,22 +1608,24 @@ async def create_forum_channel(
1609
1608
options = {}
1610
1609
if position is not MISSING :
1611
1610
options ["position" ] = position
1612
-
1611
+
1613
1612
if topic is not MISSING :
1614
1613
options ["topic" ] = topic
1615
-
1614
+
1616
1615
if slowmode_delay is not MISSING :
1617
1616
options ["rate_limit_per_user" ] = slowmode_delay
1618
-
1617
+
1619
1618
if nsfw is not MISSING :
1620
1619
options ["nsfw" ] = nsfw
1621
-
1620
+
1622
1621
if available_tags is not MISSING :
1623
1622
options ["available_tags" ] = [tag .to_dict () for tag in available_tags ]
1624
-
1623
+
1625
1624
if default_sort_order is not MISSING :
1626
- options ["default_sort_order" ] = default_sort_order .value if default_sort_order else None
1627
-
1625
+ options ["default_sort_order" ] = (
1626
+ default_sort_order .value if default_sort_order else None
1627
+ )
1628
+
1628
1629
if default_thread_slowmode_delay is not MISSING :
1629
1630
options ["default_thread_slowmode_delay" ] = default_thread_slowmode_delay
1630
1631
@@ -1700,10 +1701,10 @@ async def create_category(
1700
1701
options : dict [str , Any ] = {}
1701
1702
if position is not MISSING :
1702
1703
options ["position" ] = position
1703
-
1704
+
1704
1705
if nsfw is not MISSING :
1705
1706
options ["nsfw" ] = nsfw
1706
-
1707
+
1707
1708
data = await self ._create_channel (
1708
1709
name ,
1709
1710
overwrites = overwrites ,
0 commit comments