User

fun User(userId: Long)

Creates a new User object provided the user ID of the User.

Sample

Java

// This represents the Roblox account as a User
User user = new User(1);
// Prints the user's name
System.out.println(user.name);

Parameters

userId

The User's user ID

Throws


fun User(username: String)

Creates a new User object provided the username of the User.

Sample

Java

// This represents the Roblox account as a User
User user = new User("Roblox");
// Prints the User's name
System.out.println(client.name);

Parameters

username

The User's username

Throws