Timeout User
Timeout 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%
duration
int required
The legnth, in seconds of the timeout
Variables
Name | Type | Description |
---|---|---|
Display name of the timedout user | ||
ID of the timedout user | ||
Login name of the timedout user | ||
Example Value: youtube Platform of the timedout user | ||
Example Value: True/False Indicator whether the timeout was successful or not |
C# Usage
Times out the selected YouTube user for the selected duration, by ID
0.2.4
public bool YouTubeTimeoutUserById(string userId, int duration, string broadcastId)
userIdstring required durationint required broadcastIdstring
CPH.YouTubeTimeoutUserById(userId, duration);
CPH.YouTubeTimeoutUserById(userId, duration, broadcastId);
Times out the selected YouTube user for the selected duration, by name
0.2.4
public bool YouTubeTimeoutUserByName(string userName, int duration, string broadcastId)
userNamestring required durationint required broadcastIdstring
CPH.YouTubeTimeoutUserByName(userName, duration);
CPH.YouTubeTimeoutUserByName(userName, duration, broadcastId);