User in Group
Check if a Twitch user is a member of a given group
Preview
Parameters
User Loginrequired
String
can be a user name or a variable like %userName%
Group Namerequired
String
can be a specific group name or a variable
Variables
The following variables will be populated after executing this sub-action:
Description | ||
---|---|---|
foundUser | string | the user's display name Example: PewDiePie |
foundUserId | string | the user's ID Example: 12345678 |
foundUserName | string | the user's login name Example: pewdiepie |
foundUserType | string | the user's platform Example: twitch |
inGroup | bool | indicator whether the user is in the specified group or not Example: True/False |
C# Usage
Check if a user, by username, is a member of a group
0.2.3
public bool UserInGroup(string userName, Platform platform, string groupName)