Ban User
Ban a Kick user
Parameters
User Loginrequired
String
can be a user name or a variable like %userName%
Reason
String
ban reason
Variables
The following variables will be populated after executing this sub-action:
Description | ||
---|---|---|
banResult | bool | indicator whether the ban has been successful or not Example: True/False |
bannedUser | string | display name of the banned user Example: GenericUser |
bannedUserId | string | ID of the banned user Example: 12345678 |
bannedUserName | string | login name of the banned user Example: genericuser |
bannedUserType | string | platform of the banned user Example: kick |
C# Usage
Bans the selected Kick user for the selected reason
1.0.0
public bool KickBanUser(string userName, string reason, bool bot = false)