Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions interactions/models/discord/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1900,6 +1900,10 @@ def parent_channel(self) -> Union[GuildText, "GuildForum"]:
"""The channel this thread is a child of."""
return self._client.cache.get_channel(self.parent_id)

@property
def nsfw(self) -> bool:
return self.parent_channel.nsfw

@property
def parent_message(self) -> Optional["Message"]:
"""The message this thread is a child of."""
Expand Down
Loading