Remove User From Group
Remove a Twitch user from a group

Remove User From Group Dialog
Parameters
User Login
String required
can be a user name or a variable like %userName%
Group Name
String required
can be a specific group name or a variable
Variables
Name | Type | Description |
---|---|---|
Example Value: True/False indicator whether the removal has been successful or not |
C# Usage
Remove a user, by username (login name), from a group
0.2.3
public bool RemoveUserFromGroup(string userName, Platform platform, string groupName)
userNamestring required platformPlatform required groupNamestring required
using System;
public class CPHInline
{
public bool Execute()
{
//Define the groupname you want to add the user to
string groupName = "Test Group";
//Get userName of current user
CPH.TryGetArg("userName",out string userName);
//Get user type and define the Platform Enum
CPH.TryGetArg("userType",out string userType);
Enum.TryParse(userType, out Platform platform);
//Method returns a bool type which you can check if the user was removed
bool userGotRemoved = CPH.RemoveUserFromGroup(userName, platform, groupName);
return true;
}
}