File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
interactions/models/discord Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1901,6 +1901,11 @@ def permission_overwrites(self) -> List["PermissionOverwrite"]:
1901
1901
"""The permission overwrites for this channel."""
1902
1902
return []
1903
1903
1904
+ @property
1905
+ def clyde_created (self ) -> bool :
1906
+ """Whether this thread was created by Clyde."""
1907
+ return ChannelFlags .CLYDE_THREAD in self .flags
1908
+
1904
1909
def permissions_for (self , instance : Snowflake_Type ) -> Permissions :
1905
1910
"""
1906
1911
Calculates permissions for an instance
Original file line number Diff line number Diff line change @@ -788,6 +788,8 @@ class SystemChannelFlags(DiscordIntFlag):
788
788
class ChannelFlags (DiscordIntFlag ):
789
789
PINNED = 1 << 1
790
790
""" Thread is pinned to the top of its parent forum channel """
791
+ CLYDE_THREAD = 1 << 8
792
+ """This thread was created by Clyde"""
791
793
792
794
# Special members
793
795
NONE = 0
You can’t perform that action at this time.
0 commit comments