BanUser

constructor(user: User, reason: String? = null, timeout: Int? = null)

Parameters

user

The user to be blocked.

reason

The reason for banning the user.

timeout

The time until the user is automatically unbanned, expressed in minutes. A null value represent an indefinite ban.