Skip to content

Commit f51992e

Browse files
committed
🔥 Remove deprecated attributes on CategoryChannel
Signed-off-by: Paillat-dev <[email protected]>
1 parent 419a24e commit f51992e

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

discord/channel.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2988,25 +2988,6 @@ async def create_forum_channel(self, name: str, **options: Any) -> ForumChannel:
29882988
"""
29892989
return await self.guild.create_forum_channel(name, category=self, **options)
29902990

2991-
@utils.deprecated(
2992-
since="2.7",
2993-
removed="3.0",
2994-
reference="NSFW categories are not available in the Discord API.",
2995-
)
2996-
def is_nsfw(self) -> bool:
2997-
return False
2998-
2999-
# TODO: Remove in 3.0
3000-
3001-
@property
3002-
@utils.deprecated(
3003-
since="2.7",
3004-
removed="3.0",
3005-
reference="NSFW categories are not available in the Discord API.",
3006-
)
3007-
def nsfw(self) -> bool:
3008-
return False
3009-
30102991

30112992
DMC = TypeVar("DMC", bound="DMChannel")
30122993

0 commit comments

Comments
 (0)