User

getLastOnline

This method gives you the last online date of a specified user.

Example code: (Gets Roblox's last online date)

client.user:getLastOnline(1):andThen(function(date)
    print(date);
end):catch(warn)

Arguments:

Type
Name

integer

userId

Returns:

<array>, example:

{
    ["IsOnline"] = false,
    ["LastLocation"] = "Offline",
    ["LastOnline"] = "2006-02-27T15:06:40.3-06:00",
    ["ParsedLastOnline"] = {
        ["day"] = "27",
        ["hour"] = "15",
        ["minute"] = "06",
        ["month"] = "02",
        ["second"] = "40",
        ["year"] = "2006"
    },
    ["PresenceType"] = 0,
    ["Visibility"] = 0,
    ["VisitorId"] = 1
}

The "ParsedLastOnline" is not included with the standard web API, it is parsed after the request using the module.

getInformation

This method returns information found on a specified player's profile like their account creation date, description, ban status, display name, and username.

Sample code: (gets Roblox's info)

Arguments:

Type
Name

integer

userId

Returns:

<array>, example:

getPastUsernames

This method returns a page object representing the specified user's past usernames. If you do not know how to use pages, I'd recommend checking out the page below.

Introduction to Pages

Sample code: (getting my past usernames)

Arguments:

Type
Name

integer

userId

Returns: <page object>

searchUsers

This method returns a page object representing you searching for specified users, if you don't know how to use page objects check out the page below!

Introduction to Pages

Sample code: (Searching for Roblox)

Arguments:

Type
Name

string

search query

Returns: <page object>

Last updated