@@ -2841,8 +2841,6 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
2841
2841
position: Optional[:class:`int`]
2842
2842
The position in the category list. This is a number that starts at 0. e.g. the
2843
2843
top category is position 0. Can be ``None`` if the channel was received in an interaction.
2844
- nsfw: :class:`bool`
2845
- If the channel is marked as "not safe for work".
2846
2844
2847
2845
.. note::
2848
2846
@@ -2886,7 +2884,6 @@ def _update(self, guild: Guild, data: CategoryChannelPayload) -> None:
2886
2884
2887
2885
# This data may be missing depending on how this object is being created/updated
2888
2886
if not data .pop ("_invoke_flag" , False ):
2889
- self .nsfw : bool = data .get ("nsfw" , False )
2890
2887
self .position : int = data .get ("position" )
2891
2888
self .flags : ChannelFlags = ChannelFlags ._from_value (data .get ("flags" , 0 ))
2892
2889
self ._fill_overwrites (data )
@@ -2916,7 +2913,6 @@ async def edit(
2916
2913
* ,
2917
2914
name : str = ...,
2918
2915
position : int = ...,
2919
- nsfw : bool = ...,
2920
2916
overwrites : Mapping [Role | Member , PermissionOverwrite ] = ...,
2921
2917
reason : str | None = ...,
2922
2918
) -> CategoryChannel | None : ...
@@ -2944,8 +2940,6 @@ async def edit(self, *, reason=None, **options):
2944
2940
The new category's name.
2945
2941
position: :class:`int`
2946
2942
The new category's position.
2947
- nsfw: :class:`bool`
2948
- To mark the category as NSFW or not.
2949
2943
reason: Optional[:class:`str`]
2950
2944
The reason for editing this category. Shows up on the audit log.
2951
2945
overwrites: Dict[Union[:class:`Role`, :class:`Member`, :class:`~discord.abc.Snowflake`], :class:`PermissionOverwrite`]
0 commit comments