Ban User

Ban a YouTube user

Parameters

Broadcast
select required

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 Login
string required

Can be a user name or a variable like %userName%

Variables

NameTypeDescription

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

Example Value:True/False

Indicator whether the ban was successful or not

 
Variables generated by all triggers and available within all action executions.

C# Usage

public bool YouTubeBanUserById(string userId, string broadcastId)
Read more in API > C# > Methods > Youtube > Moderation > Youtube Ban User By Id
public bool YouTubeBanUserByName(string userName, string broadcastId)
Read more in API > C# > Methods > Youtube > Moderation > Youtube Ban User By Name