Ban User
Ban a YouTube user
Parameters
Broadcast
select required
What broacast to apply the ban to.
All
will aply to all broadcastsLatest
will apply to the latest broadcast monitoredVariable
uses the fixedbroadcast.id
variable 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/False Indicator 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: twitch Platform of the banned user |
C# Usage
Bans the selected YouTube user from the given broadcast, by ID
0.2.4
public bool YouTubeBanUserById(string userId, string broadcastId)
userIdstring required broadcastIdstring
CPH.YouTubeBanUserById(userId);
CPH.YouTubeBanUserById(userId, broadcastId);
Bans the selected YouTube user from the given broadcast, by name
0.2.4
public bool YouTubeBanUserByName(string userName, string broadcastId)
userNamestring required broadcastIdstring
CPH.YouTubeBanUserByName(userName);
CPH.YouTubeBanUserByName(userName, broadcastId);