Skip to content

Commit d3f240d

Browse files
committed
Add lead_moderator property
1 parent 079442e commit d3f240d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

twitchio/user.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3756,6 +3756,7 @@ class Chatter(PartialUser):
37563756
"_is_artist_badge",
37573757
"_is_broadcaster",
37583758
"_is_founder",
3759+
"_is_lead_moderator",
37593760
"_is_moderator",
37603761
"_is_no_audio",
37613762
"_is_no_video",
@@ -3833,6 +3834,13 @@ def moderator(self) -> bool:
38333834
This bool should always be ``True`` when the chatter is a moderator.
38343835
"""
38353836
return getattr(self, "_is_moderator", False) or self.broadcaster
3837+
@property
3838+
def lead_moderator(self) -> bool:
3839+
"""A property returning a bool indicating whether the chatter is the lead moderator.
3840+
3841+
This bool should always be ``True`` when the chatter is the lead moderator.
3842+
"""
3843+
return getattr(self, "_is_lead_moderator", False)
38363844

38373845
@property
38383846
def vip(self) -> bool:

0 commit comments

Comments
 (0)