Skip to content

Commit 332e652

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 46aa608 commit 332e652

File tree

2 files changed

+45
-49
lines changed

2 files changed

+45
-49
lines changed

discord/channel.py

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2101,12 +2101,12 @@ async def edit(self, *, reason=None, **options):
21012101
slowmode_delay: :class:`int`
21022102
Specifies the slowmode rate limit for user in this channel, in seconds.
21032103
The maximum value possible is `21600`.
2104-
2104+
21052105
.. versionadded:: 2.7
2106-
2106+
21072107
nsfw: :class:`bool`
21082108
To mark the channel as NSFW or not.
2109-
2109+
21102110
.. versionadded:: 2.7
21112111
21122112
Returns
@@ -2764,29 +2764,24 @@ async def edit(self, *, reason=None, **options):
27642764
27652765
bitrate: :class:`int`
27662766
The channel's preferred audio bitrate in bits per second.
2767-
2767+
27682768
.. versionadded:: 2.7
2769-
2769+
27702770
user_limit: :class:`int`
27712771
The channel's limit for number of members that can be in a voice channel.
2772-
2772+
27732773
.. versionadded:: 2.7
2774-
2774+
27752775
slowmode_delay: :class:`int`
27762776
Specifies the slowmode rate limit for user in this channel, in seconds.
27772777
The maximum value possible is `21600`.
2778-
2778+
27792779
.. versionadded:: 2.7
2780-
2780+
27812781
nsfw: :class:`bool`
27822782
To mark the channel as NSFW or not.
2783-
2784-
.. versionadded:: 2.7
27852783
2786-
Returns
2787-
-------
2788-
:class:`StageChannel`
2789-
The channel that was just created.
2784+
.. versionadded:: 2.7
27902785
27912786
Returns
27922787
-------

discord/guild.py

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ async def create_text_channel(
11761176
11771177
default_thread_slowmode_delay: Optional[:class:`int`]
11781178
The initial slowmode delay to set on newly created threads in this channel.
1179-
1179+
11801180
.. versionadded:: 2.7
11811181
11821182
default_auto_archive_duration: :class:`int`
@@ -1231,10 +1231,10 @@ async def create_text_channel(
12311231

12321232
if nsfw is not MISSING:
12331233
options["nsfw"] = nsfw
1234-
1234+
12351235
if default_thread_slowmode_delay is not MISSING:
12361236
options["default_thread_slowmode_delay"] = default_thread_slowmode_delay
1237-
1237+
12381238
if default_auto_archive_duration is not MISSING:
12391239
options["default_auto_archive_duration"] = default_auto_archive_duration
12401240

@@ -1303,12 +1303,12 @@ async def create_voice_channel(
13031303
slowmode_delay: :class:`int`
13041304
Specifies the slowmode rate limit for user in this channel, in seconds.
13051305
The maximum value possible is `21600`.
1306-
1306+
13071307
.. versionadded:: 2.7
1308-
1308+
13091309
nsfw: :class:`bool`
13101310
To mark the channel as NSFW or not.
1311-
1311+
13121312
.. versionadded:: 2.7
13131313
13141314
Returns
@@ -1346,7 +1346,7 @@ async def create_voice_channel(
13461346

13471347
if nsfw is not MISSING:
13481348
options["nsfw"] = nsfw
1349-
1349+
13501350
data = await self._create_channel(
13511351
name,
13521352
overwrites=overwrites,
@@ -1401,37 +1401,36 @@ async def create_stage_channel(
14011401
reason: Optional[:class:`str`]
14021402
The reason for creating this channel. Shows up on the audit log.
14031403
1404-
14051404
bitrate: :class:`int`
14061405
The channel's preferred audio bitrate in bits per second.
1407-
1406+
14081407
.. versionadded:: 2.7
1409-
1408+
14101409
user_limit: :class:`int`
14111410
The channel's limit for number of members that can be in a voice channel.
1412-
1411+
14131412
.. versionadded:: 2.7
1414-
1413+
14151414
rtc_region: Optional[:class:`VoiceRegion`]
14161415
The region for the voice channel's voice communication.
14171416
A value of ``None`` indicates automatic voice region detection.
1418-
1417+
14191418
.. versionadded:: 2.7
1420-
1419+
14211420
video_quality_mode: :class:`VideoQualityMode`
14221421
The camera video quality for the voice channel's participants.
1423-
1422+
14241423
.. versionadded:: 2.7
1425-
1424+
14261425
slowmode_delay: :class:`int`
14271426
Specifies the slowmode rate limit for user in this channel, in seconds.
14281427
The maximum value possible is `21600`.
1429-
1428+
14301429
.. versionadded:: 2.7
1431-
1430+
14321431
nsfw: :class:`bool`
14331432
To mark the channel as NSFW or not.
1434-
1433+
14351434
.. versionadded:: 2.7
14361435
14371436
Returns
@@ -1553,24 +1552,24 @@ async def create_forum_channel(
15531552
15541553
available_tags: List[:class:`ForumTag`]
15551554
The set of tags that can be used in a forum channel.
1556-
1555+
15571556
.. versionadded:: 2.7
1558-
1557+
15591558
default_sort_order: Optional[:class:`SortOrder`]
15601559
The default sort order type used to order posts in this channel.
1561-
1560+
15621561
.. versionadded:: 2.7
1563-
1562+
15641563
default_thread_slowmode_delay: Optional[:class:`int`]
15651564
The initial slowmode delay to set on newly created threads in this channel.
1566-
1565+
15671566
.. versionadded:: 2.7
15681567
15691568
default_auto_archive_duration: :class:`int`
15701569
The default auto archive duration in minutes for threads created in this channel.
15711570
15721571
.. versionadded:: 2.7
1573-
1572+
15741573
Returns
15751574
-------
15761575
:class:`ForumChannel`
@@ -1609,22 +1608,24 @@ async def create_forum_channel(
16091608
options = {}
16101609
if position is not MISSING:
16111610
options["position"] = position
1612-
1611+
16131612
if topic is not MISSING:
16141613
options["topic"] = topic
1615-
1614+
16161615
if slowmode_delay is not MISSING:
16171616
options["rate_limit_per_user"] = slowmode_delay
1618-
1617+
16191618
if nsfw is not MISSING:
16201619
options["nsfw"] = nsfw
1621-
1620+
16221621
if available_tags is not MISSING:
16231622
options["available_tags"] = [tag.to_dict() for tag in available_tags]
1624-
1623+
16251624
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+
16281629
if default_thread_slowmode_delay is not MISSING:
16291630
options["default_thread_slowmode_delay"] = default_thread_slowmode_delay
16301631

@@ -1700,10 +1701,10 @@ async def create_category(
17001701
options: dict[str, Any] = {}
17011702
if position is not MISSING:
17021703
options["position"] = position
1703-
1704+
17041705
if nsfw is not MISSING:
17051706
options["nsfw"] = nsfw
1706-
1707+
17071708
data = await self._create_channel(
17081709
name,
17091710
overwrites=overwrites,

0 commit comments

Comments
 (0)