Skip to content

User Methods

Info

This is Unofficial and a fan made project, do not ask ScriptBlox for support.

GetUserFromUsername

Retrieves user information from the ScriptBlox API based on the provided username.

UserObject GetUserFromUsername(string bloxId)

Parameters
  • username (string): The username of the user to retrieve.
Return Value
  • UserObject: A UserObject representing the user's information.
Exceptions
  • ScriptBloxException: Thrown when an error occurs while fetching user information.

GetUserFromUserId

Retrieves user information from the ScriptBlox API based on the provided userId.

UserObject GetUserFromUserId(string userId)

Parameters
  • userId (string): The userId of the user to retrieve.
Return Value
  • UserObject: A UserObject representing the user's information.
Exceptions
  • ScriptBloxException: Thrown when an error occurs while fetching user information.

GetUserIdFromName

Retrieves the user ID from the given username using the ScriptBlox API.

string GetUserIdFromName(string username)

Parameters
  • username (string): The username of the user to retrieve.
Return Value
  • string: UserId of user.
Exceptions
  • None

IsUsernameTaken

Checks if a username is taken.

bool IsUsernameTaken(string username)

Parameters
  • username: (string): The username to check.
Return Value
  • bool: True if the username is taken; otherwise, false.
Exceptions
  • None