Ban User
Ban a YouTube user
Parameters
Broadcastrequired
select
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 Loginrequired
string
Can be a user name or a variable like %userName%
Variables
The following variables will be populated after executing this sub-action:
Description | ||
---|---|---|
banResult | boolean | Indicator whether the ban was successful or not Example: True/False |
bannedUser | string | Display name of the banned user |
bannedUserId | string | User ID of the banned user |
bannedUserName | string | Login name of the banned user |
bannedUserType | string | Platform of the banned user Example: twitch |
C# Usage
Bans the selected YouTube user from the given broadcast, by ID
0.2.4
public bool YouTubeBanUserById(string userId, string broadcastId)
Bans the selected YouTube user from the given broadcast, by name
0.2.4
public bool YouTubeBanUserByName(string userName, string broadcastId)