diff --git a/TwitchLib.EventSub.Core/SubscriptionTypes/Channel/ChannelChatMessage.cs b/TwitchLib.EventSub.Core/SubscriptionTypes/Channel/ChannelChatMessage.cs index f4cbb95..bff9e8a 100644 --- a/TwitchLib.EventSub.Core/SubscriptionTypes/Channel/ChannelChatMessage.cs +++ b/TwitchLib.EventSub.Core/SubscriptionTypes/Channel/ChannelChatMessage.cs @@ -70,7 +70,7 @@ public sealed class ChannelChatMessage /// /// Returns true if viewer is a subscriber /// - public bool IsSubscriber => Badges.Any(x => x.SetId.Equals("subscriber", StringComparison.OrdinalIgnoreCase)); + public bool IsSubscriber => Badges.Any(x => x.SetId.Equals("subscriber", StringComparison.OrdinalIgnoreCase) || x.SetId.Equals("founder", StringComparison.OrdinalIgnoreCase)); /// /// Returns true if viewer is a moderator /// @@ -83,5 +83,9 @@ public sealed class ChannelChatMessage /// Returns true if viewer is a vip /// public bool IsVip => Badges.Any(x => x.SetId.Equals("vip", StringComparison.OrdinalIgnoreCase)); + /// + /// Returns true if viewer is a staff member + /// + public bool IsStaff => Badges.Any(x => x.SetId.Equals("staff", StringComparison.OrdinalIgnoreCase) || x.SetId.Equals("admin", StringComparison.OrdinalIgnoreCase)); } }