@@ -1724,6 +1724,11 @@ class VoiceChannel(discord.abc.Messageable, VocalGuildChannel):
1724
1724
Extra features of the channel.
1725
1725
1726
1726
.. versionadded:: 2.0
1727
+
1728
+ nsfw: :class:`bool`
1729
+ To mark the channel as NSFW or not.
1730
+
1731
+ .. versionadded:: 2.7
1727
1732
"""
1728
1733
1729
1734
def __init__ (
@@ -2042,6 +2047,7 @@ async def edit(
2042
2047
rtc_region : VoiceRegion | None = ...,
2043
2048
video_quality_mode : VideoQualityMode = ...,
2044
2049
slowmode_delay : int = ...,
2050
+ nsfw : int = ...,
2045
2051
reason : str | None = ...,
2046
2052
) -> VoiceChannel | None : ...
2047
2053
@@ -2092,6 +2098,17 @@ async def edit(self, *, reason=None, **options):
2092
2098
2093
2099
.. versionadded:: 2.0
2094
2100
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
+
2095
2112
Returns
2096
2113
-------
2097
2114
Optional[:class:`.VoiceChannel`]
@@ -2250,6 +2267,17 @@ class StageChannel(discord.abc.Messageable, VocalGuildChannel):
2250
2267
last_message_id: Optional[:class:`int`]
2251
2268
The ID of the last message sent to this channel. It may not always point to an existing or valid message.
2252
2269
.. 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
2253
2281
"""
2254
2282
2255
2283
__slots__ = ("topic" ,)
@@ -2734,6 +2762,32 @@ async def edit(self, *, reason=None, **options):
2734
2762
2735
2763
.. versionadded:: 2.0
2736
2764
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
+
2737
2791
Returns
2738
2792
-------
2739
2793
Optional[:class:`.StageChannel`]
0 commit comments