Skip to content

Commit 7dd8a7a

Browse files
authored
Update channel.py
Signed-off-by: Lumabots <[email protected]>
1 parent 952aab8 commit 7dd8a7a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

discord/channel.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2780,10 +2780,6 @@ async def edit(self, *, reason=None, **options):
27802780
27812781
.. versionadded:: 2.7
27822782
2783-
nsfw: :class:`bool`
2784-
To mark the channel as NSFW or not.
2785-
2786-
.. versionadded:: 2.7
27872783
27882784
Returns
27892785
-------
@@ -2844,7 +2840,6 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
28442840
28452841
.. note::
28462842
2847-
To check if the channel or the guild of that channel are marked as NSFW, consider :meth:`is_nsfw` instead.
28482843
flags: :class:`ChannelFlags`
28492844
Extra features of the channel.
28502845
@@ -2873,7 +2868,7 @@ def __init__(
28732868
def __repr__(self) -> str:
28742869
return (
28752870
"<CategoryChannel"
2876-
f" id={self.id} name={self.name!r} position={self.position} nsfw={self.nsfw}>"
2871+
f" id={self.id} name={self.name!r} position={self.position}"
28772872
)
28782873

28792874
def _update(self, guild: Guild, data: CategoryChannelPayload) -> None:
@@ -2897,10 +2892,6 @@ def type(self) -> ChannelType:
28972892
"""The channel's Discord type."""
28982893
return ChannelType.category
28992894

2900-
def is_nsfw(self) -> bool:
2901-
"""Checks if the category is NSFW."""
2902-
return self.nsfw
2903-
29042895
@utils.copy_doc(discord.abc.GuildChannel.clone)
29052896
async def clone(
29062897
self, *, name: str | None = None, reason: str | None = None

0 commit comments

Comments
 (0)