Skip to content

Commit 3ca8b90

Browse files
committed
moderator property returns true for both mod and lead_mod
1 parent d3f240d commit 3ca8b90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

twitchio/user.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3833,7 +3833,8 @@ def moderator(self) -> bool:
38333833
38343834
This bool should always be ``True`` when the chatter is a moderator.
38353835
"""
3836-
return getattr(self, "_is_moderator", False) or self.broadcaster
3836+
return getattr(self, "_is_moderator", False) or getattr(self, "_is_lead_moderator", False) or self.broadcaster
3837+
38373838
@property
38383839
def lead_moderator(self) -> bool:
38393840
"""A property returning a bool indicating whether the chatter is the lead moderator.

0 commit comments

Comments
 (0)