Ban User
Ban a Twitch user

Preview
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 Example: True/False |
bannedUser | string | display name of the banned user Example: PewDiePie |
bannedUserId | string | ID of the banned user Example: 12345678 |
bannedUserName | string | login name of the banned user Example: pewdiepie |
bannedUserType | string | platform of the banned user Example: twitch |
C# Usage
public bool TwitchBanUser(string userName, string reason, bool bot = false)