Ban User
Ban a YouTube user
Parameters
Broadcast
select required
What broacast to apply the ban to.
Allwill aply to all broadcastsLatestwill apply to the latest broadcast monitoredVariableuses the fixedbroadcast.idvariable to select the broadcast
User Login
string required
Can be a user name or a variable like %userName%
Variables
| Name | Type | Description |
|---|---|---|
Example Value: True/FalseIndicator whether the ban was successful or not | ||
Display name of the banned user | ||
User ID of the banned user | ||
Login name of the banned user | ||
Example Value: twitchPlatform of the banned user |
C# Usage
public bool YouTubeBanUserById(string userId, string broadcastId)
public bool YouTubeBanUserByName(string userName, string broadcastId)