setUserName

public abstract Unit setUserName(String firstName, String lastName)

Attempts to change username if the channel configuration allows setting of the username. All subsequent events sent from chat will have new value filled out.