Ban User
Ban a Twitch user
Parameters
User Loginrequired
String
can be a user name or a variable like %userName%
Reason
String
ban reason
Variables
The following variables will be populated after executing this sub-action:
Description | ||
---|---|---|
banResult | bool | indicator whether the ban has been successful or not True/False |
bannedUser | string | display name of the banned user PewDiePie |
bannedUserId | string | ID of the banned user 12345678 |
bannedUserName | string | login name of the banned user pewdiepie |
bannedUserType | string | platform of the banned user twitch |
C# Usage
public bool TwitchBanUser(string userName, string reason, bool bot = false)