-
Notifications
You must be signed in to change notification settings - Fork 0
Classes v.4.5
THIS IS ONLY FOR PEOPLE USING VERSION 4.5 (OR MAYBE LOWER). ALL PEOPLE USING VERSION 5.0 OR ABOVE SHOULD GO TO THE 'CLASSES' TAB.
- None
- GetUsernameFromId
- GetIdFromUsername
- IsInGroup
- GetRankInGroup
- GetRoleInGroup
- GroupIsPrimary
- GetProfileDescription
- GetProfileStatus
- GetAvatarImage
- IsBanned
- IsOnline
- GetOnlineStatus
- CanManageAsset
Gets the User's name from their ID
Parameters
- userId (Integer)
Returns
- String
Example
.GetUsernameFromId(12345)
Gets the User's ID from their name
Parameters
- name (String)
Returns
- Integer
Example
.GetIdFromUsername("ROBLOX")
If user is in a specific group
Parameters
- userId (Integer)
- groupId (Integer)
Returns
- Boolean
Example
.IsInGroup(12345, 54321)
Get the User's rank in a specific group
Parameters
- userId (Integer)
- groupId (Integer)
Returns
- Integer
Example
.GetRankInGroup(12345, 54321)
Get the User's role in a specific group
Parameters
- userId (Integer)
- groupId (Integer)
Returns
- String
Example
.GetRoleInGroup(12345, 54321)
If a specific group is the User's primary
Parameters
- userId (Integer)
- groupId (Integer)
Returns
- Boolean
Example
.GroupIsPrimary(12345, 54321)
Get the User's profile description. This will return None if there is no profile description.
Parameters
- userId (Integer)
Returns
- String
Example
.GetProfileDescription(12345)
Get the User's profile status. This will return None if there is no profile status.
Parameters
- userId (Integer)
Returns
- String
Example
.GetProfileStatus(12345)
Get the User's avatar image
Parameters
- userId (Integer)
Returns
- String
Example
.GetAvatarImage(12345)
If user is banned
Parameters
- userId (Integer)
Returns
- Boolean
Example
.IsBanned(12345)
If user is online currently
Parameters
- userId (Integer)
Returns
- Boolean
Example
.IsOnline(12345)
Get the User's online status
Parameters
- userId (Integer)
Returns
- JSON Object / Python Dictionary
Example
.GetOnlineStatus(12345)
User can manage asset
Parameters
- userId (Integer)
- assetId (Integer)
Returns
- Boolean
Example
.CanManageAsset(12345, 12345)
Creates a User object
Properties
- Name (String) - The User's Name.
- DisplayName (String) - The User's Display name.
- Id (Integer) - The User's ID.
- IsBanned (Boolean) - Whether the user is banned or not.
- Created (String) - The date when the user was created.
- Description (String) - The description of the user.
- Status (String) - The status of the user.
Parameters
- userId (Integer)
Example
User(12345)
- None
- GetFriends
- GetFirstFriend
- GetRecentFriend
- UsersAreFriends
Gets the friends of the User
Parameters
- userId (Integer)
Returns
- JSON Object / Python List and Dictionary
Example
.GetFriends(12345)
Gets the first friend of the User
Parameters
- userId (Integer)
Returns
- JSON Object / Python Dictionary
Example
.GetFirstFriend(12345)
Gets the recent friend of the User
Parameters
- userId (Integer)
Returns
- JSON Object / Python Dictionary
Example
.GetRecentFriend(12345)
Whether the user is friends with the other user or not
Parameters
- userId1 (Integer)
- userId2 (Integer)
Returns
- Boolean
Example
.UsersAreFriends(12345, 54321)
- None
- GetAsset
- UserHasAsset
Gets the asset information
Parameters
- assetId (Integer)
Returns
- JSON Object / Python Dictionary
Example
.GetAsset(12345)
Whether the user has a specified asset or not
Parameters
- userId (Integer)
- assetId (Integer)
Returns
- Boolean
Example
.UserHasAsset(12345, 54321)
Creates a new Asset object
Properties
- ProductType (String) - The type of product (for example: "User Product").
- AssetId (Integer) - The asset ID.
- ProductId (Integer) - The product ID.
- Name (String) - The asset name.
- Description (String) - The asset description.
- AssetTypeId (Integer) - The asset type ID.
- Creator (String) - The creator of the asset.
- CreatorId (Integer) - The creator's ID.
- CreatorType (String) - The creator's type.
- Created (String) - The date when the asset was created.
- Updated (String) - The date when the asset was recently updated.
- PriceInRobux (Integer) - The robux price of the asset.
- Sales (Integer) - The sales of the asset.
- IsNew (Boolean) - Whether the asset is new or not.
- IsForSale (Boolean) - Whether the asset is on for sale or not.
- IsPublicDomain (Boolean) - Whether the asset is public domain or not.
- IsLimited (Boolean) - Whether the asset is a limited or not.
- IsLimitedUnique (Boolean) - Whether the asset is limited unique or not.
Parameters
- assetId (Integer)
Example
Asset(12345)
- None
- GetUsersGroups
- GetUsersGroupIds
- GetGroup
- GetGroupName
- GetGroupOwner
- HasOwner
- GetGroupDescription
- GetGroupRoles
- GetGroupRoleNames
- GetGroupRoleNumbers
- GetGroupAllies
- GetGroupAllyNames
- GetRecentAllyOfGroup
- GetGroupEnemies
- GetGroupEnemyNames
- GetRecentEnemyOfGroup
Gets a list of the User's groups
Parameters
- userId (Integer)
Returns
- Python List
Example
.GetUsersGroups(12345)
Gets a list of the User's groups' IDs
Parameters
- userId (Integer)
Returns
- Python List
Example
.GetUsersGroupIds(12345)
Gets the group's information
Parameters
- groupId (Integer)
Returns
- JSON Object / Python Dictionary
Example
.GetGroup(12345)
Gets the group's name
Parameters
- groupId (Integer)
Returns
- String
Example
.GetGroupName(12345)
Gets the group's owner
Parameters
- groupId (Integer)
Returns
- String (Returns None if no owner)
Example
.GetGroupOwner(12345)
Whether the group has an owner or not
Parameters
- groupId (Integer)
Returns
- Boolean
Example
.HasOwner(12345)
Gets the group's description
Parameters
- groupId (Integer)
Returns
- String
Example
.GetGroupDescription(12345)
Gets the group's roles
Parameters
- groupId (Integer)
Returns
- JSON Object / Python List and Dictionary
Example
.GetGroupRoles(12345)
Gets the group's role names
Parameters
- groupId (Integer)
Returns
- Python List
Example
.GetGroupRoleNames(12345)
Gets the group's role numbers
Parameters
- groupId (Integer)
Returns
- Python List
Example
.GetGroupRoleNumbers(12345)
Gets the group's allies
Parameters
- groupId (Integer)
Returns
- JSON Object / Python Dictionary
Example
.GetGroupAllies(12345)
Gets the group's ally names
Parameters
- groupId (Integer)
Returns
- Python List
Example
.GetGroupAllyNames(12345)
Gets the group's recent ally
Parameters
- groupId (Integer)
Returns
- JSON Object / Python Dictionary
Example
.GetRecentAllyOfGroup(12345)
Gets the group's enemies
Parameters
- groupId (Integer)
Returns
- JSON Object / Python Dictionary
Example
.GetGroupEnemies(12345)
Gets the group's enemy names
Parameters
- groupId (Integer)
Returns
- Python List
Example
.GetGroupEnemyNames(12345)
Gets the group's recent enemy
Parameters
- groupId (Integer)
Returns
- JSON Object / Python Dictionary
Example
.GetRecentEnemyOfGroup(12345)
Creates a new Group object
Properties
- Name (String) - The group's name.
- Id (Integer) - The group's ID.
- Owner (JSON Object / Python Dictionary) - The group's owner information. Returns None if no owner.
- OwnerName (String) - The group's owner name. Returns None if no owner.
- OwnerId (Integer) - The group's owner ID. Returns None if no owner.
- EmblemUrl (String) - The group's emblem url.
- Description (String) - The group's description.
- Roles (JSON Object / Python Dictionary) - The group's roles.
Parameters
- groupId (Integer)
Example
Group(12345)