public bool RemoveUserIdFromGroup(string userId, Platform platform, string groupName)
The unique ID for this user
The platform this user belongs to
Possible values:
Platform.TwitchPlatform.YouTubePlatform.TrovoThe name of the group
bool
using System;
public class CPHInline
{
public bool Execute()
{
//Define the groupname you want to add the user to
string groupName = "Test Group";
//Get userId of current user
CPH.TryGetArg("userId",out string userId);
//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.RemoveUserIdFromGroup(userId, platform, groupName); return true;
}
}