@@ -1722,6 +1722,7 @@ async def create_voice_channel(
17221722 rtc_region : Optional [str ] = MISSING ,
17231723 video_quality_mode : VideoQualityMode = MISSING ,
17241724 overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = MISSING ,
1725+ nsfw : bool = MISSING ,
17251726 ) -> VoiceChannel :
17261727 """|coro|
17271728
@@ -1759,6 +1760,10 @@ async def create_voice_channel(
17591760 The camera video quality for the voice channel's participants.
17601761
17611762 .. versionadded:: 2.0
1763+ nsfw: :class:`bool`
1764+ To mark the channel as NSFW or not.
1765+
1766+ .. versionadded:: 2.6
17621767 reason: Optional[:class:`str`]
17631768 The reason for creating this channel. Shows up on the audit log.
17641769
@@ -1794,6 +1799,9 @@ async def create_voice_channel(
17941799 raise TypeError ('video_quality_mode must be of type VideoQualityMode' )
17951800 options ['video_quality_mode' ] = video_quality_mode .value
17961801
1802+ if nsfw is not MISSING :
1803+ options ['nsfw' ] = nsfw
1804+
17971805 data = await self ._create_channel (
17981806 name , overwrites = overwrites , channel_type = ChannelType .voice , category = category , reason = reason , ** options
17991807 )
@@ -1815,6 +1823,7 @@ async def create_stage_channel(
18151823 rtc_region : Optional [str ] = MISSING ,
18161824 video_quality_mode : VideoQualityMode = MISSING ,
18171825 overwrites : Mapping [Union [Role , Member , Object ], PermissionOverwrite ] = MISSING ,
1826+ nsfw : bool = MISSING ,
18181827 ) -> StageChannel :
18191828 """|coro|
18201829
@@ -1858,6 +1867,10 @@ async def create_stage_channel(
18581867 The camera video quality for the voice channel's participants.
18591868
18601869 .. versionadded:: 2.0
1870+ nsfw: :class:`bool`
1871+ To mark the channel as NSFW or not.
1872+
1873+ .. versionadded:: 2.1
18611874 reason: Optional[:class:`str`]
18621875 The reason for creating this channel. Shows up on the audit log.
18631876
@@ -1894,6 +1907,9 @@ async def create_stage_channel(
18941907 raise TypeError ('video_quality_mode must be of type VideoQualityMode' )
18951908 options ['video_quality_mode' ] = video_quality_mode .value
18961909
1910+ if nsfw is not MISSING :
1911+ options ['nsfw' ] = nsfw
1912+
18971913 data = await self ._create_channel (
18981914 name ,
18991915 overwrites = overwrites ,
0 commit comments