Function set_username

Source
pub async fn set_username(username: String, client_id: i32) -> Result<(), Error>
Expand description

Changes the editable username of the current user

§Arguments

  • username - The new value of the username. Use an empty string to remove the username. The username can’t be completely removed if there is another active or disabled username
  • client_id - The client id to send the request to