Skip to content

Commit 952aab8

Browse files
authored
Update channel.py
removal of all the nsfw mention which should not exist for category Signed-off-by: Lumabots <[email protected]>
1 parent d8b79ff commit 952aab8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

discord/channel.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2841,8 +2841,6 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
28412841
position: Optional[:class:`int`]
28422842
The position in the category list. This is a number that starts at 0. e.g. the
28432843
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".
28462844
28472845
.. note::
28482846
@@ -2886,7 +2884,6 @@ def _update(self, guild: Guild, data: CategoryChannelPayload) -> None:
28862884

28872885
# This data may be missing depending on how this object is being created/updated
28882886
if not data.pop("_invoke_flag", False):
2889-
self.nsfw: bool = data.get("nsfw", False)
28902887
self.position: int = data.get("position")
28912888
self.flags: ChannelFlags = ChannelFlags._from_value(data.get("flags", 0))
28922889
self._fill_overwrites(data)
@@ -2916,7 +2913,6 @@ async def edit(
29162913
*,
29172914
name: str = ...,
29182915
position: int = ...,
2919-
nsfw: bool = ...,
29202916
overwrites: Mapping[Role | Member, PermissionOverwrite] = ...,
29212917
reason: str | None = ...,
29222918
) -> CategoryChannel | None: ...
@@ -2944,8 +2940,6 @@ async def edit(self, *, reason=None, **options):
29442940
The new category's name.
29452941
position: :class:`int`
29462942
The new category's position.
2947-
nsfw: :class:`bool`
2948-
To mark the category as NSFW or not.
29492943
reason: Optional[:class:`str`]
29502944
The reason for editing this category. Shows up on the audit log.
29512945
overwrites: Dict[Union[:class:`Role`, :class:`Member`, :class:`~discord.abc.Snowflake`], :class:`PermissionOverwrite`]

0 commit comments

Comments
 (0)