Ban User
Ban a Twitch user

Ban User Dialog
Parameters
User Login
String required
can be a user name or a variable like %userName%
Reason
String
ban reason
Variables
Name | Type | Description |
---|---|---|
Example Value: True/False indicator whether the ban has been successful or not | ||
Example Value: GenericUser display name of the banned user | ||
Example Value: 12345678 ID of the banned user | ||
Example Value: genericuser login name of the banned user | ||
Example Value: twitch platform of the banned user |
C# Usage
public bool TwitchBanUser(string userName, string reason, bool bot = false)
CPH.TwitchBanUser(userName);
CPH.TwitchBanUser(userName, reason, bot);