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
banResultbool

indicator whether the ban has been successful or not

True/False
bannedUserstring

display name of the banned user

PewDiePie
bannedUserIdstring

ID of the banned user

12345678
bannedUserNamestring

login name of the banned user

pewdiepie
bannedUserTypestring

platform of the banned user

twitch

C# Usage

public bool TwitchBanUser(string userName, string reason, bool bot = false)