From d25be56bf248a3b322b4cc9a52df1d041f7b4600 Mon Sep 17 00:00:00 2001 From: Michael Felix Date: Sun, 2 Mar 2025 12:22:24 -0500 Subject: [PATCH] feat: add support for nsfw for ThreadChannel --- interactions/models/discord/channel.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interactions/models/discord/channel.py b/interactions/models/discord/channel.py index ff2792ef2..55b988622 100644 --- a/interactions/models/discord/channel.py +++ b/interactions/models/discord/channel.py @@ -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."""