Skip to content

Commit 6e68b7a

Browse files
authored
Update channel.py
add missings docs Signed-off-by: Lumabots <[email protected]>
1 parent 426bb6a commit 6e68b7a

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

discord/channel.py

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,11 @@ class VoiceChannel(discord.abc.Messageable, VocalGuildChannel):
17241724
Extra features of the channel.
17251725
17261726
.. versionadded:: 2.0
1727+
1728+
nsfw: :class:`bool`
1729+
To mark the channel as NSFW or not.
1730+
1731+
.. versionadded:: 2.7
17271732
"""
17281733

17291734
def __init__(
@@ -2042,6 +2047,7 @@ async def edit(
20422047
rtc_region: VoiceRegion | None = ...,
20432048
video_quality_mode: VideoQualityMode = ...,
20442049
slowmode_delay: int = ...,
2050+
nsfw: int = ...,
20452051
reason: str | None = ...,
20462052
) -> VoiceChannel | None: ...
20472053

@@ -2092,6 +2098,17 @@ async def edit(self, *, reason=None, **options):
20922098
20932099
.. versionadded:: 2.0
20942100
2101+
slowmode_delay: :class:`int`
2102+
Specifies the slowmode rate limit for user in this channel, in seconds.
2103+
The maximum value possible is `21600`.
2104+
2105+
.. versionadded:: 2.7
2106+
2107+
nsfw: :class:`bool`
2108+
To mark the channel as NSFW or not.
2109+
2110+
.. versionadded:: 2.7
2111+
20952112
Returns
20962113
-------
20972114
Optional[:class:`.VoiceChannel`]
@@ -2250,6 +2267,17 @@ class StageChannel(discord.abc.Messageable, VocalGuildChannel):
22502267
last_message_id: Optional[:class:`int`]
22512268
The ID of the last message sent to this channel. It may not always point to an existing or valid message.
22522269
.. versionadded:: 2.5
2270+
2271+
slowmode_delay: :class:`int`
2272+
Specifies the slowmode rate limit for user in this channel, in seconds.
2273+
The maximum value possible is `21600`.
2274+
2275+
.. versionadded:: 2.7
2276+
2277+
nsfw: :class:`bool`
2278+
To mark the channel as NSFW or not.
2279+
2280+
.. versionadded:: 2.7
22532281
"""
22542282

22552283
__slots__ = ("topic",)
@@ -2734,6 +2762,32 @@ async def edit(self, *, reason=None, **options):
27342762
27352763
.. versionadded:: 2.0
27362764
2765+
bitrate: :class:`int`
2766+
The channel's preferred audio bitrate in bits per second.
2767+
2768+
.. versionadded:: 2.7
2769+
2770+
user_limit: :class:`int`
2771+
The channel's limit for number of members that can be in a voice channel.
2772+
2773+
.. versionadded:: 2.7
2774+
2775+
slowmode_delay: :class:`int`
2776+
Specifies the slowmode rate limit for user in this channel, in seconds.
2777+
The maximum value possible is `21600`.
2778+
2779+
.. versionadded:: 2.7
2780+
2781+
nsfw: :class:`bool`
2782+
To mark the channel as NSFW or not.
2783+
2784+
.. versionadded:: 2.7
2785+
2786+
Returns
2787+
-------
2788+
:class:`StageChannel`
2789+
The channel that was just created.
2790+
27372791
Returns
27382792
-------
27392793
Optional[:class:`.StageChannel`]

0 commit comments

Comments
 (0)