Ban User

Ban a YouTube user

Parameters

Broadcastrequired
select

What broacast to apply the ban to.

  • All will aply to all broadcasts
  • Latest will apply to the latest broadcast monitored
  • Variable uses the fixed broadcast.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
banResultboolean

Indicator whether the ban was successful or not

Example: True/False
bannedUserstring

Display name of the banned user

bannedUserIdstring

User ID of the banned user

bannedUserNamestring

Login name of the banned user

bannedUserTypestring

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)