Skip to content

Commit 26ca893

Browse files
authored
Merge pull request #1758 from feelixs/feat-nsfw-thread
feat: add support for nsfw for ThreadChannel
2 parents 27b5a85 + d25be56 commit 26ca893

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

interactions/models/discord/channel.py

+4
Original file line numberDiff line numberDiff line change
@@ -1900,6 +1900,10 @@ def parent_channel(self) -> Union[GuildText, "GuildForum"]:
19001900
"""The channel this thread is a child of."""
19011901
return self._client.cache.get_channel(self.parent_id)
19021902

1903+
@property
1904+
def nsfw(self) -> bool:
1905+
return self.parent_channel.nsfw
1906+
19031907
@property
19041908
def parent_message(self) -> Optional["Message"]:
19051909
"""The message this thread is a child of."""

0 commit comments

Comments
 (0)