Ban User

Ban a Twitch user
Preview
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
banResultbool

indicator whether the ban has been successful or not

Example: True/False
bannedUserstring

display name of the banned user

Example: PewDiePie
bannedUserIdstring

ID of the banned user

Example: 12345678
bannedUserNamestring

login name of the banned user

Example: pewdiepie
bannedUserTypestring

platform of the banned user

Example: twitch

C# Usage

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