Skip to content

Commit 966b528

Browse files
committed
feat(channel): deprecate is_nsfw method in CategoryChannel
1 parent 121ae58 commit 966b528

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

discord/channel.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3067,6 +3067,12 @@ async def create_forum_channel(self, name: str, **options: Any) -> ForumChannel:
30673067
"""
30683068
return await self.guild.create_forum_channel(name, category=self, **options)
30693069

3070+
@utils.deprecated(since=2.7, removed=3.0)
3071+
def is_nsfw(self) -> bool:
3072+
return False
3073+
3074+
# TODO: Remove in 3.0
3075+
30703076

30713077
DMC = TypeVar("DMC", bound="DMChannel")
30723078

0 commit comments

Comments
 (0)