Methods
# acceptFriendRequest(userId) → {Promise.<void>}
🔐 Accept a user's friend request.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.acceptFriendRequest(123456)
# acceptTrade(tradeId) → {Promise.<void>}
🔐 Accept an active trade.
Parameters:
Name | Type | Description |
---|---|---|
tradeId |
number
|
The tradeId to accept. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.acceptTrade(1234)
# addDeveloperProduct(universeId, name, priceInRobux, descriptionopt) → {Promise.<DeveloperProductAddResult>}
🔐 Create a developer product.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
universeId |
number
|
The id of the universe. |
|
name |
string
|
The name of the developer product. |
|
priceInRobux |
number
|
The price of the product. |
|
description |
string
|
<optional> |
The description of the developer product. |
Promise.<DeveloperProductAddResult>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.addDeveloperProduct(1, "A Developer Product", 100, "A cool item.")
# addUsersToConversation(conversationId, userIds) → {Promise.<ConversationAddResponse>}
🔐 Add users to a conversation.
Parameters:
Name | Type | Description |
---|---|---|
conversationId |
number
|
The id of the conversation. |
userIds |
Array.<number>
|
The userIds of the users to add. |
Promise.<ConversationAddResponse>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.addUsersToConversation(1, [1, 2, 3])
# avatarRules(optionopt) → {Promise.<AvatarRules>}
✅ Get the avatar rules.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
option |
string
|
<optional> |
A specific rule to filter for. |
Promise.<AvatarRules>
Example
const noblox = require("noblox.js")
const avatarRules = await noblox.avatarRules()
# block(userId) → {Promise.<void>}
🔐 Block a user.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user that is being blocked. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.block(123456)
# buy(asset, priceopt) → {Promise.<BuyAssetResponse>}
🔐 Buy an asset from the marketplace.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
asset |
number
|
The ID of the product. |
|
price |
number
|
<optional> |
The price of the product. |
Promise.<BuyAssetResponse>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.buy(1117747196)
# canManage(userId, assetId) → {Promise.<boolean>}
✅ Returns whether the user can manage a given asset.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user. |
assetId |
number
|
The id of the asset. |
Promise.<boolean>
Example
const noblox = require("noblox.js")
let canManage = await noblox.canManage(123456, 234567)
# canTradeWith(userId) → {Promise.<CanTradeResponse>}
🔐 Check if the signed in user can trade with another user.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user. |
Promise.<CanTradeResponse>
Example
const noblox = require("noblox.js")
// Login using your cookie
const canTrade = await noblox.canTradeWith(1234)
# changeRank(groupId, target, change) → {Promise.<ChangeRankResult>}
🔐 Change a user's rank.
Parameters:
Name | Type | Description |
---|---|---|
groupId |
number
|
The id of the group. |
target |
number
|
The userId of the target. |
change |
number
|
The change in rank (1 = one rank higher, -1 = one rank lower) |
Promise.<ChangeRankResult>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.changeRank(1, 2, -1)
# chatSettings() → {Promise.<ChatSettings>}
🔐 Get the chat settings.
Promise.<ChatSettings>
Example
const noblox = require("noblox.js")
// Login using your cookie
const settings = await noblox.chatSettings()
# clearSession(jar) → {Promise.<string>}
🔐 Remove .ROBLOSECURITY cookie from jar.
Parameters:
Name | Type | Description |
---|---|---|
jar |
CookieJar
|
The CookieJar containing the .ROBLOSECURITY cookie. |
Promise.<string>
Example
const noblox = require("noblox.js")
noblox.clearSession()
# configureGamePass(gamePassId, name, descriptionopt, price, iconopt) → {Promise.<GamePassResponse>}
🔐 Modifies an existing game pass.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
gamePassId |
number
|
The id of the game pass. |
|
name |
string
|
The name of the game pass; skips name, description, and icon if set to "". |
|
description |
string
|
<optional> |
The description of the game pass; description is updated when name is modified. |
price |
number
|
boolean
|
The price of the game pass in Robux; sets to 'Off Sale' if 0, false, or a negative value; skips if true. |
|
icon |
ReadStream
|
<optional> |
The read stream for the game pass icon being uploaded; .png, .jpg, .gif |
Promise.<GamePassResponse>
Example
const noblox = require("noblox.js")
const fs = require("fs")
// Login using your cookie
noblox.configureGamePass(12345678, "Game Pass Title", "Game Pass Description", 1234, fs.createReadStream("./Image.png"))
# configureItem(assetId, name, description, enableCommentsopt, sellForRobuxopt, genreSelectionopt) → {Promise.<ConfigureItemResponse>}
🔐 Configure an asset.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
assetId |
number
|
The id of the asset. |
||
name |
string
|
The new name of the asset. |
||
description |
string
|
The new description of the asset. |
||
enableComments |
boolean
|
<optional> |
Enable comments on your asset. |
|
sellForRobux |
number
|
boolean
|
<optional> |
false | The amount of robux to sell for; use a number for sellable assets, boolean for copyable assets |
genreSelection |
string
|
<optional> |
"All" | The genre of your asset. |
Promise.<ConfigureItemResponse>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.configureItem(1117747196, "Item", "A cool item.", false, 100)
# counterTrade(tradeId, targetUserId, sendingOffer, recievingOffer) → {Promise.<SendTradeResponse>}
🔐 Counter an active incoming trade.
Parameters:
Name | Type | Description |
---|---|---|
tradeId |
number
|
The id of the active trade |
targetUserId |
number
|
The user to send the trade to. |
sendingOffer |
TradeOffer
|
The offer to send to the other user. |
recievingOffer |
TradeOffer
|
The offer you are requesting from the other user. |
Promise.<SendTradeResponse>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.counterTrade(1234, 80231025, { userAssetIds: [23289506393] }, { userAssetIds: [32924150919] })
# currentlyWearing(userId) → {Promise.<AssetIdList>}
✅ Get the assets a given user is wearing.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The user's userId. |
Promise.<AssetIdList>
Example
const noblox = require("noblox.js")
const wearingAssets = await noblox.currentlyWearing(1)
# declineAllFriendRequests() → {Promise.<void>}
🔐 Decline all incoming friend requests.
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.declineAllFriendRequests()
# declineFriendRequest(userId) → {Promise.<void>}
🔐 Decline a user's friend request.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user that sent the friend request that is being declined. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.declineFriendRequest(123456)
# declineTrade(tradeId) → {Promise.<void>}
🔐 Decline an active trade.
Parameters:
Name | Type | Description |
---|---|---|
tradeId |
number
|
The tradeId to decline. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.declineTrade(1234)
# deleteDatastoreEntry(universeId, datastoreName, entryKey, scopeopt) → {Promise.<void>}
☁️ Marks the entry as deleted by creating a tombstone version. Entries are deleted permanently after 30 days.
API Key Permissions:- Delete entry
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
universeId |
number
|
The ID of the universe |
||
datastoreName |
string
|
Name of the data store |
||
entryKey |
string
|
The key which identifies the entry. |
||
scope |
string
|
<optional> |
global | Defaults to global, similar to Lua API. |
Promise.<void>
Example
const noblox = require("noblox.js")
await noblox.deleteDatastoreEntry({ universeId: 127407415, datastoreName: 'LevelStore', entryKey: 'Level_User' })
# deleteFromInventory(assetId) → {Promise.<void>}
🔐 Removes an asset from the authenticated user's inventory; throws an error if the item is not owned.
Parameters:
Name | Type | Description |
---|---|---|
assetId |
number
|
The id of the asset. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
await noblox.deleteFromInventory(144075659)
# deleteWallPost(group, postId) → {Promise.<void>}
🔐 Delete a wall post.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
postId |
number
|
The id of the post to delete. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.deleteWallPost(1, 2)
# deleteWallPostsByUser(group, userId) → {Promise.<void>}
🔐 Removes all wall posts sent by the provided user.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
userId |
number
|
The userId of the user having their posts removed. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.deleteWallPostsByUser(1, 2)
# demote(group, target) → {Promise.<ChangeRankResult>}
🔐 Demote a user.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
target |
number
|
The userId of the user being demoted. |
Promise.<ChangeRankResult>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.demote(1, 2)
# exile(group, target) → {Promise.<void>}
🔐 Exile a user from a group.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
target |
number
|
The userId of the user being exiled. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.exile(1, 2)
# generalRequest(url, events, ignoreCacheopt, getBodyopt, jaropt) → {Promise.<Object>}
🔐 Get the verification inputs and send a request.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
url |
string
|
The url to post to. |
||
events |
object
|
Form data to send with the request. |
||
ignoreCache |
boolean
|
<optional> |
false | Whether to ignore the cache or not. |
getBody |
boolean
|
<optional> |
false | Whether to return the original body before the POST request. |
jar |
CookieJar
|
<optional> |
The CookieJar containing the .ROBLOSECURITY cookie. |
Promise.<Object>
Example
const noblox = require("noblox.js")
// Login using your cookie.
noblox.generalRequest("//www.roblox.com/Groups/Group.aspx?gid=1", { __EVENTTARGET: 'JoinGroupDiv', __EVENTARGUMENT: 'Click' })
# getAction(row) → {AuditItem}
✅ Get the action row for the audit log text. Supported: change rank, delete post, change group status.
Parameters:
Name | Type | Description |
---|---|---|
row |
string
|
The audit log action row. |
- Deprecated:
- Yes
# getAuditLog(group, actionTypeopt, userIdopt, sortOrderopt, limitopt, cursoropt) → {Promise.<AuditPage>}
🔐 Get the audit log for the group.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
group |
number
|
The id of the group. |
|
actionType |
"DeletePost"
|
"RemoveMember"
|
"AcceptJoinRequest"
|
"DeclineJoinRequest"
|
"PostStatus"
|
"ChangeRank"
|
"BuyAd"
|
"SendAllyRequest"
|
"CreateEnemy"
|
"AcceptAllyRequest"
|
"DeclineAllyRequest"
|
"DeleteAlly"
|
"DeleteEnemy"
|
"AddGroupPlace"
|
"RemoveGroupPlace"
|
"CreateItems"
|
"ConfigureItems"
|
"SpendGroupFunds"
|
"ChangeOwner"
|
"Delete"
|
"AdjustCurrencyAmounts"
|
"Abandon"
|
"Claim"
|
"Rename"
|
"ChangeDescription"
|
"InviteToClan"
|
"KickFromClan"
|
"CancelClanInvite"
|
"BuyClan"
|
"CreateGroupAsset"
|
"UpdateGroupAsset"
|
"ConfigureGroupAsset"
|
"RevertGroupAsset"
|
"CreateGroupDeveloperProduct"
|
"ConfigureGroupGame"
|
"Lock"
|
"Unlock"
|
"CreateGamePass"
|
"CreateBadge"
|
"ConfigureBadge"
|
"SavePlace"
|
"PublishPlace"
|
<optional> |
The action type to filter for. |
userId |
number
|
<optional> |
The user's id to filter for. |
sortOrder |
SortOrder
|
<optional> |
The order to sort the logs by. |
limit |
Limit
|
<optional> |
The maximum logs per a page. |
cursor |
string
|
<optional> |
The cursor for the page. |
Promise.<AuditPage>
Example
const noblox = require("noblox.js")
// Login using your cookie
const rankLogs = await noblox.getAuditLog(1, "ChangeRank", 2, "Asc")
# getAuthenticatedUser() → {AuthenticatedUserData}
🔐 Get the current authenticated user.
Example
const noblox = require("noblox.js")
// Login using your cookie.
const user = await noblox.getAuthenticatedUser()
# getAvatar(userId) → {Promise.<AvatarInfo>}
✅ Get a user's avatar.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The user's userId. |
Promise.<AvatarInfo>
Example
const noblox = require("noblox.js")
const avatar = await noblox.getAvatar(1)
# getAwardedTimestamps(userId, badgeId) → {Promise.<UserBadgeStats>}
✅ Get the time the badge was awarded to a user.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The userId of the user. |
badgeId |
Array.<number>
|
The ids of the badges. |
Promise.<UserBadgeStats>
Example
const noblox = require("noblox.js")
const badges = await noblox.getAwardedTimestamps(1, [1, 2, 3])
# async getBadgeInfo(badgeId) → {Promise.<BadgeInfo>}
✅ Get the info of a badge.
Parameters:
Name | Type | Description |
---|---|---|
badgeId |
number
|
The badge's id. |
Promise.<BadgeInfo>
Example
const noblox = require("noblox.js")
const badgeInfo = await noblox.getBadgeInfo(1)
# getBlurb(userId) → {Promise.<string>}
✅ Get a user's blurb - a user's description.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user's blurb that is being retrieved. |
- Deprecated:
- Obsolete function, will be deleted in future version. Use getPlayerInfo instead.
Promise.<string>
Example
const noblox = require("noblox.js")
let blurb = await noblox.getBlurb({ userId: 123456 })
# getChatMessages(conversationId, pageSizeopt, exclusiveStartMessageIdopt) → {Promise.<Array.<ChatMessage>>}
🔐 Get the chat messages for a conversation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
conversationId |
number
|
The id of the conversation. |
||
pageSize |
number
|
<optional> |
100 | The size of the page. |
exclusiveStartMessageId |
string
|
<optional> |
The messageId to start at. |
Promise.<Array.<ChatMessage>>
Example
const noblox = require("noblox.js")
// Login using your cookie
const messages = await noblox.getChatMessages(1, 25)
# getCollectibles(userId, sortOrderopt, assetTypeopt, limitopt) → {Promise.<Array.<CollectibleEntry>>}
🔓 Get a user's collectibles.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
userId |
number
|
The id of the user whose collectibles are being retrieved. |
||
sortOrder |
SortOrder
|
<optional> |
Asc | The order that the collectibles will bee sorted by (Asc or Desc) |
assetType |
string
|
<optional> |
The asset type for the collectibles you're trying to get. |
|
limit |
number
|
<optional> |
10 | The amount of results per request. |
Promise.<Array.<CollectibleEntry>>
Example
const noblox = require("noblox.js")
let collectibles = await noblox.getCollectibles({userId: 123456, sortOrder: "Asc", limit: 100})
# getConversations(conversationIds) → {Promise.<Array.<ChatConversation>>}
🔐 Get conversation details for the conversationIds specified in the parameters
Parameters:
Name | Type | Description |
---|---|---|
conversationIds |
Array.<number>
|
An array with the ids of the conversations. |
Promise.<Array.<ChatConversation>>
Example
const noblox = require("noblox.js")
// Login using your cookie
const conversations = await noblox.getConversations([1, 2, 3])
# getCurrentAvatar(optionopt) → {Promise.<AvatarInfo>}
🔐 Gets your current avatar.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
option |
number
|
<optional> |
The name of a parameter on the avatar. |
Promise.<AvatarInfo>
Example
const noblox = require("noblox.js")
// Login using your cookie
const avatar = await noblox.getCurrentAvatar()
# getCurrentUser(optionopt) → {LoggedInUserData}
🔐 Get the current logged in user.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
option |
string
|
<optional> |
A specific option to return. |
- Deprecated:
- getCurrentUser() is deprecated; see getAuthenticatedUser(), getPremium(), getThumbnails(), getUserFunds() instead | August 27, 2024 - https://devforum.roblox.com/t/official-list-of-deprecated-web-endpoints/62889/66 // Login using your cookie. const user = await noblox.getCurrentUser()
Example
const noblox = require("noblox.js")
# getDatastoreEntry(universeId, datastoreName, entryKey, scopeopt, versionIdopt) → {Promise.<DatastoreEntry>}
☁️ Returns the latest value and metadata associated with an entry, or a specific version if versionId is provided.
API Key Permissions:- Read entries
- Read version
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
universeId |
number
|
The ID of the universe |
||
datastoreName |
string
|
Name of the data store |
||
entryKey |
string
|
The key which identifies the entry. |
||
scope |
string
|
<optional> |
global | Defaults to global, similar to Lua API. |
versionId |
string
|
<optional> |
The version to inspect |
Promise.<DatastoreEntry>
Example
const noblox = require("noblox.js")
const entry = await noblox.getDatastoreEntry({ universeId: 127407415, datastoreName: 'LevelStore', entryKey: 'Level_User' })
# getDatastoreEntryVersions(universeId, datastoreName, entryKey, scopeopt, startTimeopt, endTimeopt, sortOrderopt, limitopt, cursoropt) → {Promise.<EntryVersionsResult>}
☁️ Returns a list of entry versions of an entry.
API Key Permissions:- List versions
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
universeId |
number
|
The ID of the universe |
||
datastoreName |
string
|
Name of the data store |
||
entryKey |
string
|
The key which identifies the entry. |
||
scope |
string
|
boolean
|
<optional> |
global | Defaults to global, similar to Lua API. |
startTime |
Date
|
<optional> |
Don't consider versions older than this |
|
endTime |
Date
|
<optional> |
Don't consider versions younger than this |
|
sortOrder |
"Ascending"
|
"Descending"
|
<optional> |
Ascending | Older first (Ascending) or younger first (Descending) |
limit |
number
|
<optional> |
Maximum number of items to return |
|
cursor |
string
|
<optional> |
Provide to request the next set of data |
Promise.<EntryVersionsResult>
Example
const noblox = require("noblox.js")
const versions = await noblox.getDatastoreEntryVersions({ universeId: 127407415, datastoreName: 'LevelStore', entryKey: 'Level_User' })
# getDatastoreKeys(universeId, datastoreName, scopeopt, prefixopt, limitopt, cursoropt) → {Promise.<DatastoreKeysResult>}
☁️ Returns a list of entry keys within a data store.
API Key Permissions:- List keys
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
universeId |
number
|
The ID of the universe |
||
datastoreName |
string
|
Name of the data store |
||
scope |
string
|
boolean
|
<optional> |
global | Defaults to global, similar to Lua API. If set to true, returns keys from all scopes. |
prefix |
string
|
<optional> |
Return only data stores with this prefix |
|
limit |
number
|
<optional> |
Maximum number of items to return |
|
cursor |
string
|
<optional> |
Provide to request the next set of data |
Promise.<DatastoreKeysResult>
Example
const noblox = require("noblox.js")
const keys = await noblox.getDatastoreKeys({ universeId: 127407415, datastoreName: 'LevelStore' })
# getDatastores(universeId, prefixopt, limitopt, cursoropt) → {Promise.<DatastoresResult>}
☁️ Returns a list of data stores belonging to a universe.
API Key Permissions:- List DataStores
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
universeId |
number
|
The ID of the universe whose data stores are being retrieved. |
|
prefix |
string
|
<optional> |
Return only data stores with this prefix |
limit |
number
|
<optional> |
Maximum number of items to return |
cursor |
string
|
<optional> |
Provide to request the next set of data |
Promise.<DatastoresResult>
Example
const noblox = require("noblox.js")
const datastores = await noblox.getDatastores(1117747196)
# getDeveloperProducts(placeId, pageopt) → {Promise.<DeveloperProductsResult>}
🔐 Returns the existing developer products in a specified game.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
placeId |
number
|
The ID of the place whose developer products you want to retrieve |
||
page |
number
|
<optional> |
1 | Which page of developer products to return (pageSize is 50) |
Promise.<DeveloperProductsResult>
# getFollowers(userId, limitopt, sortOrderopt, cursoropt) → {Promise.<FollowersPage>}
✅ Get a user's followers.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
userId |
number
|
The id of the user whose followers are being returned. |
||
limit |
Limit
|
<optional> |
10 | The amount of followers being fetched each request. |
sortOrder |
SortOrder
|
<optional> |
Asc | The order that the data should be sorted by (Asc or Desc) |
cursor |
string
|
<optional> |
The cursor for the previous or next page. |
Promise.<FollowersPage>
Example
const noblox = require("noblox.js")
let followers = await noblox.getFollowers(123456, "Asc", 10)
# getFollowings(userId, limitopt, sortOrderopt, cursoropt) → {Promise.<FollowingsPage>}
✅ Get the users followed by the user.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
userId |
number
|
The id of the user. |
||
limit |
Limit
|
<optional> |
10 | The amount of users fetched by each request (10, 25, 50, 100) |
sortOrder |
SortOrder
|
<optional> |
Asc | The order that the returned data will be sorted by (Asc or Desc) |
cursor |
string
|
<optional> |
The previous or next page's cursor. |
Promise.<FollowingsPage>
Example
const noblox = require("noblox.js")
let following = await noblox.getFollowings(123456, "Asc", 50)
# getFriendRequests(sortOrderopt, limitopt, cursoropt) → {Promise.<FriendRequestsPage>}
🔐 Get the friend requests of the authenticated user.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
sortOrder |
SortOrder
|
<optional> |
Asc | The order of the returned data (Asc or Desc) |
limit |
Limit
|
<optional> |
10 | The number of users returned by each request. |
cursor |
string
|
<optional> |
The previous or next page's cursor. |
Promise.<FriendRequestsPage>
Example
const noblox = require("noblox.js")
// Login using your cookie
let friendRequests = await noblox.getFriendRequests({sortOrder: "Desc", limit: 100})
# getFriends(userId) → {Promise.<Friends>}
✅ Get the friends of a user
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user whose friends are being returned. |
Promise.<Friends>
Example
const noblox = require("noblox.js")
let friends = await noblox.getFriends(123456)
# async getGameBadges(universeId, limitopt, cursoropt, sortOrderopt) → {Promise.<BadgeInfo>}
✅ Get the badges in a specific game.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
universeId |
number
|
The id of the universe. |
|
limit |
Limit
|
<optional> |
The max number of badges to return. |
cursor |
string
|
<optional> |
The page cursor. |
sortOrder |
SortOrder
|
<optional> |
The order to sort badges in. (Asc/Desc) |
Promise.<BadgeInfo>
Example
const noblox = require("noblox.js")
const badges = await noblox.getGameBadges(1)
# getGameInstances(placeId, serverTypeopt, sortOrderopt, limitopt) → {Promise.<Array.<GameInstance>>}
🔓 Get the servers in a game.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
placeId |
number
|
The id of the place. |
||
serverType |
"Public"
|
"Friend"
|
"VIP"
|
<optional> |
Public | The type of server to get |
sortOrder |
SortOrder
|
<optional> |
Asc | The order that the servers will be sorted by (Asc or Desc) |
limit |
number
|
<optional> |
∞ | The maximum number of results. |
Promise.<Array.<GameInstance>>
Example
const noblox = require("noblox.js")
// Login using your cookie
const servers = await noblox.getGameInstances(1)
# getGamePassProductInfo(gamePassId) → {Promise.<GamePassProductInfo>}
✅ Get the info of an gamepass.
Parameters:
Name | Type | Description |
---|---|---|
gamePassId |
number
|
The id of the asset. |
Promise.<GamePassProductInfo>
Example
const noblox = require("noblox.js")
const gamePassInfo = await noblox.getGamePassProductInfo(2919875)
# async getGamePasses(universeId, limitopt) → {Promise.<Array.<GamePassData>>}
✅ Gets a game's game passes.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
universeId |
number
|
The id of the universe. |
|
limit |
Limit
|
<optional> |
The max number of game passes to return. |
Promise.<Array.<GamePassData>>
Example
const noblox = require("noblox.js")
const gamePasses = await noblox.getGamePasses(1686885941)
# getGameRevenue(placeId, type, granularity) → {Promise.<GameRevenueResponse>}
🔐 Get the Game Revenue data.
Parameters:
Name | Type | Description |
---|---|---|
placeId |
number
|
The id of the game. |
type |
"Revenue"
|
"RevenuePerVisit"
|
"AverageVisitLength"
|
"Visits"
|
The type of revenue. Options: Revenue, RevenuePerVisit, AverageVisitLength, Visits |
granularity |
"Hourly"
|
"Daily"
|
"Monthly"
|
The type of revenue. Options: Hourly, Daily, Monthly |
Promise.<GameRevenueResponse>
Example
const noblox = require("noblox.js")
const gameRevenue = await noblox.getGameRevenue(936068308, "Revenue", "Hourly");
# getGameSocialLinks(universeId) → {Promise.<Array.<SocialLinkResponse>>}
🔐 Get the social link data associated with a game.
Parameters:
Name | Type | Description |
---|---|---|
universeId |
number
|
The universe id of the game. |
- See:
-
getPlaceInfo() - can be used to convert a placeId to a universeId
Promise.<Array.<SocialLinkResponse>>
Example
const noblox = require("noblox.js")
const gameSocialLinks = await noblox.getGameSocialLinks(2615802125)
# getGeneralToken(jaropt) → {Promise.<string>}
🔐 Generate an X-CSRF-Token.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
jar |
CookieJar
|
<optional> |
The jar containing the .ROBLOSECURITY token. |
Promise.<string>
Example
const noblox = require("noblox.js")
// Login using your cookie.
const XCSRF = await noblox.getGeneralToken()
# getGroup(groupId) → {Promise.<Group>}
✅ Get a group's info.
Parameters:
Name | Type | Description |
---|---|---|
groupId |
number
|
The id of the group. |
Promise.<Group>
Example
const noblox = require("noblox.js")
const groupInfo = await noblox.getGroup(1)
# getGroupAssets(groupId, assetType, sortOrderopt, limitopt) → {Promise.<Array.<GroupAssetInfo>>}
🔐 Get assets for a group.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
groupId |
number
|
The id of the group. |
||
assetType |
String
|
The type of asset being retrieved: ("Shirt", "Pants"). |
||
sortOrder |
SortOrder
|
<optional> |
Asc | The order results are sorted in. |
limit |
Limit
|
<optional> |
∞ | The maximum number of assets to return |
Promise.<Array.<GroupAssetInfo>>
Example
const noblox = require("noblox.js")
// Login using your cookie
const groupModels = await noblox.getGroupAssets({groupId: 1, assetType: 'Model', sortOrder: 'Asc', limit: '100'})
# getGroupFunds(group) → {Promise.<number>}
🔓 Gets the amount of robux in a group.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group |
Promise.<number>
Example
const noblox = require("noblox.js")
// Login using your cookie (optional if group funds are public)
let robux = await noblox.getGroupFunds(9997719)
# getGroupGames(groupId, accessFilteropt, sortOrderopt, limitopt) → {Promise.<Array.<GroupGameInfo>>}
✅ Get a group's games.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
groupId |
number
|
The id of the group. |
||
accessFilter |
"All"
|
"Public"
|
"Private"
|
<optional> |
All | Filtering games via access level. |
sortOrder |
SortOrder
|
<optional> |
Asc | The order results are sorted in. |
limit |
Limit
|
<optional> |
∞ | The maximum number of games to return |
Promise.<Array.<GroupGameInfo>>
Example
const noblox = require("noblox.js")
const groupGames = await noblox.getGroupGames({groupId: 1, accessFilter: 'All', sortOrder: 'Asc', limit: '100'})
# getGroupRevenueSummary(groupId, timeFrameopt) → {Promise.<RevenueSummaryResponse>}
🔐 Gets recent Robux revenue summary for a group; shows pending Robux. | Requires "Spend group funds" permissions.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
groupId |
number
|
The group id to get Robux summary for. |
||
timeFrame |
"Day"
|
"Week"
|
"Month"
|
"Year"
|
<optional> |
"Month" | The time frame to get for. |
Promise.<RevenueSummaryResponse>
Example
const noblox = require("noblox.js")
// Login using your cookie
let revenueSummary = await noblox.getGroupRevenueSummary(9997719, "Year")
# getGroupSocialLinks(groupId) → {Promise.<Array.<SocialLinkResponse>>}
🔐 Get the social link data associated with a group.
Parameters:
Name | Type | Description |
---|---|---|
groupId |
number
|
The id of the group. |
Promise.<Array.<SocialLinkResponse>>
Example
const noblox = require("noblox.js")
const groupSocialLinks = await noblox.getGroupSocialLinks(9997719)
# getGroupTransactions(group, transactionTypeopt, limit, sortOrderopt) → {Promise.<Array.<TransactionItem>>}
🔐 Get a group's transactions.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
group |
number
|
The id of the group. |
||
transactionType |
"Sale"
|
"Purchase"
|
"AffiliateSale"
|
"DevEx"
|
"GroupPayout"
|
"AdImpressionPayout"
|
<optional> |
Sale | The transaction type. |
limit |
number
|
The number of transactions being fetched in total. |
||
sortOrder |
SortOrder
|
<optional> |
Asc | The cursor for the next page. |
Promise.<Array.<TransactionItem>>
Example
const noblox = require("noblox.js")
// Login using your cookie
const transactions = await noblox.getGroupTransactions(1, "Sale")
# getGroups(userId) → {Promise.<Array.<IGroupPartial>>}
✅ Get the groups of a user.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user. |
Promise.<Array.<IGroupPartial>>
Example
const noblox = require("noblox.js")
let groups = await noblox.getGroups(123456)
# getHash(jar) → {string}
🔐 Get a unique hash for the given jar. Used to cache items that depend on session.
Parameters:
Name | Type | Description |
---|---|---|
jar |
CookieJar
|
The audit log action row. |
string
Example
const noblox = require("noblox.js")
// Login using your cookie.
const hash = noblox.getHash()
# getIdFromUsername(usernames) → {Promise.<number>|Promise.<Array.<number>>}
✅ Get a user's id from their username.
Parameters:
Name | Type | Description |
---|---|---|
usernames |
string
|
Array.<string>
|
The username or usernames of the account(s) whose id(s) is being fetched. |
Promise.<number>
|
Promise.<Array.<number>>
Example
const noblox = require("noblox.js")
let ids = await noblox.getIdFromUsername(["ROBLOX", "Qxest", "builderman"])
# getInputs(html, findopt) → {Inputs}
✅ Get verification inputs on a page.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
html |
string
|
The html to get the inputs from. |
|
find |
Array.<string>
|
<optional> |
The inputs to find on the page |
Example
const noblox = require("noblox.js")
const inputs = noblox.getInputs("htmlhere")
# getInventory(userId, assetTypes, sortOrderopt, limitopt) → {Promise.<Array.<InventoryEntry>>}
🔓 Get a user's inventory. NOTE: Badges must use getPlayerBadges() due to an issue with Roblox's API.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
userId |
number
|
The id of user whose inventory is being returned. |
||
assetTypes |
Array.<string>
|
The types of assets being retrieved: ("Shirt", "Pants"). |
||
sortOrder |
SortOrder
|
<optional> |
Asc | The order that the data will be returned in (Asc or Desc) |
limit |
Limit
|
<optional> |
10 | The number of assets returned in each request (10, 25, 50, or 100) |
Promise.<Array.<InventoryEntry>>
Example
const noblox = require("noblox.js")
let inventory = await noblox.getInventory({userId: 123456, assetTypes: ["Shirt"], sortOrder: "Asc", limit: 100})
# getInventoryById(userId, assetTypeId, sortOrderopt, limitopt) → {Promise.<Array.<InventoryEntry>>}
🔓 Get a user's inventory.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
userId |
number
|
The id of user whose inventory is being returned. |
||
assetTypeId |
Array.<number>
|
The types of assets being retrieved: (11, 12). |
||
sortOrder |
SortOrder
|
<optional> |
Asc | The order that the data will be returned in (Asc or Desc) |
limit |
Limit
|
<optional> |
10 | The number of assets returned in each request (10, 25, 50, or 100) |
Promise.<Array.<InventoryEntry>>
Example
const noblox = require("noblox.js")
let inventory = await noblox.getInventoryById({userId: 123456, assetTypeId: 2, sortOrder: "Asc", limit: 100})
# getJoinRequest(group, userId) → {Promise.<GroupJoinRequest>|Promise.<null>}
🔐 Gets a specific join request, given a user ID.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
userId |
number
|
The user ID whose join request is wanted. |
A join request if one exists, or null.
Promise.<GroupJoinRequest>
|
Promise.<null>
Example
const noblox = require("noblox.js")
// Login using your cookie
const request = await noblox.getJoinRequest(4591072, 5903228)
# getJoinRequests(group, sortOrderopt, limitopt, cursoropt) → {Promise.<GroupJoinRequestsPage>}
🔐 Get the join requests for a group.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
group |
number
|
The id of the group. |
|
sortOrder |
SortOrder
|
<optional> |
The order to sort the requests by. |
limit |
Limit
|
<optional> |
The maximum results per a page. |
cursor |
string
|
<optional> |
The cursor for the next page. |
Promise.<GroupJoinRequestsPage>
Example
const noblox = require("noblox.js")
// Login using your cookie
const requests = await noblox.getJoinRequests(1, "Asc")
# getLogo(group, sizeopt, circularopt, formatopt) → {Promise.<string>}
✅ Get the group's logo.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
group |
number
|
The id of the group. |
||
size |
GroupIconSize
|
<optional> |
150x150 | The size of the logo. |
circular |
boolean
|
<optional> |
false | Get the circular version of the logo. |
format |
GroupIconFormat
|
<optional> |
Png | The file format of the logo. |
Promise.<string>
Example
const noblox = require("noblox.js")
const logo = await noblox.getLogo(1)
# getMessages(pageNumberopt, pageSizeopt, messageTabopt) → {Promise.<PrivateMessagesPage>}
🔐 Get the messages of the authenticated user.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
pageNumber |
number
|
<optional> |
0 | The number of the current page. |
pageSize |
number
|
<optional> |
25 | The size of the current page. |
messageTab |
"Inbox"
|
"Sent"
|
"Archive"
|
<optional> |
Inbox | The tab of the messages being fetched (Inbox, Sent, Archive) |
Promise.<PrivateMessagesPage>
Example
const noblox = require("noblox.js")
// Login using your cookie
let messages = await noblox.getMessages(1, 10, "Inbox"))
# getOwnership(userId, itemTargetId, itemTypeopt) → {Promise.<boolean>}
✅ Check if the user owns the asset.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
userId |
number
|
The id of the user whose ownership is being checked. |
||
itemTargetId |
number
|
The id of the item. |
||
itemType |
"Asset"
|
"GamePass"
|
"Badge"
|
"Bundle"
|
<optional> |
Asset | The type of item in question (Asset, GamePass, Badge, Bundle) |
Promise.<boolean>
Example
const noblox = require("noblox.js")
let ownership = await noblox.getOwnership(123456, 234567, "GamePass")
# getPageResults(url, query, sortOrderopt, limitopt, pageCursoropt) → {Promise.<Array>}
✅ Handle pagination returned by Roblox.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
url |
string
|
The url to retrieve the page results from. |
|
query |
string
|
Any query parameters to add to the url. |
|
sortOrder |
SortOrder
|
<optional> |
The order to sort the results by. |
limit |
Limit
|
<optional> |
The maximum number of results to return. Following 'pages' of results will be requested until this limit of results is reached. |
pageCursor |
string
|
<optional> |
Current page index |
Promise.<Array>
Example
const noblox = require("noblox.js")
const inventory = await noblox.getPageResults("//inventory.roblox.com/v2/users/1/inventory", "Shirt", "Asc", 100)
# getPlaceInfo(universeId) → {Promise.<Array.<PlaceInformation>>}
🔓 Get the info for a universe.
Parameters:
Name | Type | Description |
---|---|---|
universeId |
number
|
Array.<number>
|
The id(s) of the place(s). |
Promise.<Array.<PlaceInformation>>
Example
const noblox = require("noblox.js")
const universeInfo = await noblox.getPlaceInfo([ 10905034443 ])
# getPlayerBadges(userId, limitopt, sortOrderopt) → {Promise.<Array.<PlayerBadges>>}
✅ Get the badges that a user has.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
userId |
number
|
The id of the user whose badges are being fetched. |
||
limit |
number
|
<optional> |
10 | The amount of badges being returned each request. |
sortOrder |
SortOrder
|
<optional> |
Asc | The order that the data will be returned in (Asc or Desc) |
Promise.<Array.<PlayerBadges>>
Example
const noblox = require("noblox.js")
let badges = noblox.getPlayerBadges(123456, 10, "Asc")
# getPlayerInfo(userId) → {Promise.<PlayerInfo>}
✅ Get a user's information.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user. |
Promise.<PlayerInfo>
Example
const noblox = require("noblox.js")
let information = await noblox.getPlayerInfo({userId: 123456})
# getPlayerThumbnail(userIds, sizeopt, formatopt, isCircularopt, cropTypeopt) → {Promise.<Array.<PlayerThumbnailData>>}
✅ Get a user's thumbnail.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
userIds |
number
|
Array.<number>
|
The id or an array ids of thumbnails to be retrieved; 100 |
||
size |
number
|
string
|
<optional> |
720x720 | The size of the image to be returned; defaults highest resolution |
format |
'png'
|
'jpeg'
|
<optional> |
png | The file format of the returned thumbnails |
isCircular |
boolean
|
<optional> |
false | Return the circular version of the thumbnails |
cropType |
'Body'
|
'Bust'
|
'Headshot'
|
<optional> |
Body | The style of thumbnail that will be returned |
Promise.<Array.<PlayerThumbnailData>>
Example
const noblox = require("noblox.js")
let thumbnail_default = await noblox.getPlayerThumbnail(2416399685)
let thumbnail_circHeadshot = await noblox.getPlayerThumbnail(2416399685, 420, "png", true, "Headshot")
let thumbnails_body = await noblox.getPlayerThumbnail([2416399685, 234567, 345678], "150x200", "jpeg", false, "Body")
# getPlayers(group, rolesetId, sortOrderopt, limitopt, cursoropt) → {Promise.<Array.<GroupUser>>}
✅ Get the players in a group for a specific role.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
group |
number
|
The id of the group. |
|
rolesetId |
number
|
Array.<number>
|
The roleset's id. |
|
sortOrder |
SortOrder
|
<optional> |
The order to get the players in. |
limit |
Limit
|
<optional> |
The maximum result per a page. |
cursor |
string
|
<optional> |
The cursor for the next page. |
Promise.<Array.<GroupUser>>
Example
const noblox = require("noblox.js")
const players = await noblox.getPlayers(1, 1117747196)
# getPremium(userId) → {Promise.<boolean>}
🔐 Gets whether or not a user has premium.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user. |
Promise.<boolean>
Example
const noblox = require("noblox.js")
// Login using your cookie
const hasPremium = await noblox.getPremium(123456)
# getPresences(userIds) → {Promise.<Presences>}
🔐 Get the presence status of users.
Parameters:
Name | Type | Description |
---|---|---|
userIds |
Array.<number>
|
An array of userIds. |
Promise.<Presences>
Example
const noblox = require("noblox.js")
// Login using your cookie
const presences = await noblox.getPresences([1, 2, 3])
# getProductInfo(assetId) → {Promise.<ProductInfo>}
✅ Get the info of an asset.
Parameters:
Name | Type | Description |
---|---|---|
assetId |
number
|
The id of the asset. |
Promise.<ProductInfo>
Example
const noblox = require("noblox.js")
const productInfo = await noblox.getProductInfo(1117747196)
# getRankInGroup(group, userId) → {Promise.<number>}
✅ Get the user's rank in the group.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
userId |
number
|
The id of the user. |
Promise.<number>
Example
const noblox = require("noblox.js")
const rankId = await noblox.getRankInGroup(1, 1)
# getRankNameInGroup(group, userId) → {Promise.<string>}
✅ Get a user's rank name in a group.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
userId |
number
|
The id of the user. |
Promise.<string>
Example
const noblox = require("noblox.js")
const rankName = await noblox.getRankNameInGroup(1, 1)
# getRecentItems(listTypeopt) → {Promise.<AssetRecentItemsResult>}
🔐 Get assets you've recently worn.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
listType |
number
|
<optional> |
A type of item. Ex: Shirt, All |
Promise.<AssetRecentItemsResult>
Example
const noblox = require("noblox.js")
// Login using your cookie
const recentlyWorn = await noblox.getRecentItems("All")
# async getResaleData(assetId) → {Promise.<ResaleDataResponse>}
✅ Get the recent sale history (price and volume per day for 180 days) of a limited asset.
Parameters:
Name | Type | Description |
---|---|---|
assetId |
number
|
The id of the asset. |
Promise.<ResaleDataResponse>
Example
const noblox = require("noblox.js")
const resaleData = await noblox.getResaleData(20573078)
# async getResellers(assetId, limitopt) → {Promise.<Array.<ResellerData>>}
🔐 Gets available resale copies of a limited asset.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
assetId |
number
|
The id of the asset. |
|
limit |
Limit
|
<optional> |
The max number of resellers to return. |
Promise.<Array.<ResellerData>>
Example
const noblox = require("noblox.js")
// Login using your cookie
const resellers = await noblox.getResellers(20573078)
# getRole(group, roleQuery) → {Promise.<Role>}
✅ Get a role in a group.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
Array.<number>
|
The ID of the group or an array of roles to query. |
roleQuery |
number
|
string
|
The rank of a role, the name of the role, or roleset ID. |
Promise.<Role>
Example
const noblox = require("noblox.js")
const customerRole = await noblox.getRole(1, "Customer")
# getRolePermissions(group, rolesetId) → {Promise.<RolePermissions>}
🔐 Get the permissions for a role.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
rolesetId |
number
|
The rolesetId of the role. |
Promise.<RolePermissions>
Example
const noblox = require("noblox.js")
// Login using your cookie
const rolePermissions = await noblox.getRolePermissions(1, 1117747196)
# getRoles(group) → {Promise.<Array.<Role>>}
✅ Get the roles in a group.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
Promise.<Array.<Role>>
Example
const noblox = require("noblox.js")
const roles = await noblox.getRoles(1)
# getRolloutSettings(featureNamesopt) → {Promise.<GetRolloutSettingsResult>}
🔐 Get the rollout settings.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
featureNames |
Array.<string>
|
<optional> |
The names of the features rolling out. |
Promise.<GetRolloutSettingsResult>
Example
const noblox = require("noblox.js")
// Login using your cookie
const settings = await noblox.getRolloutSettings(['LuaChat', 'Party'])
# getSenderUserId(jaropt) → {Promise.<number>}
🔐 Get the userId of the current user and cache it.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
jar |
CookieJar
|
<optional> |
The CookieJar containing the .ROBLOSECURITY cookie. |
Promise.<number>
Example
const noblox = require("noblox.js")
// Login using your cookie.
const userId = await noblox.getSenderUserId()
# getSession(jaropt) → {string}
🔐 Get the .ROBLOSECURITY cookie from the jar.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
jar |
CookieJar
|
<optional> |
The cookie jar containing the .ROBLOSECURITY cookie. |
string
Example
const noblox = require("noblox.js")
// Login using your cookie.
const cookie = await noblox.getSession()
# getShout(group) → {Promise.<GroupShout>}
🔓 Get the group's shout.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
Promise.<GroupShout>
Example
const noblox = require("noblox.js")
const groupShout = await noblox.getShout(1)
# getThumbnails(thumbnailRequests) → {Promise.<Array.<ThumbnailData>>}
✅ Get thumbnails for assets/players.
Parameters:
Name | Type | Description |
---|---|---|
thumbnailRequests |
Array.<ThumbnailRequest>
|
The id or an array ids of thumbnails to be retrieved; 100 |
Promise.<Array.<ThumbnailData>>
Example
const noblox = require("noblox.js")
const playerThumbnails = noblox.getThumbnails([
{
type: "AvatarHeadShot",
token: "270FF19ECB1AFCF25383A6F37C6AD307",
format: "png",
size: "150x150"
}, {
type: "AvatarBust",
targetId: 55549140,
isCircular: true,
format: "png",
size: "150x150"
}
])
# getTradeInfo(tradeId) → {Promise.<TradeInfo>}
🔐 Get detailed information for a specific trade.
Parameters:
Name | Type | Description |
---|---|---|
tradeId |
number
|
The id of the trade. |
Promise.<TradeInfo>
Example
const noblox = require("noblox.js")
// Login using your cookie
const tradeInfo = await noblox.getTradeInfo(1234)
# getTrades(tradeStatusType, sortOrderopt, limitopt) → {Promise.<Array.<TradeAsset>>}
🔐 Get the trades for a specific category.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
tradeStatusType |
string
|
The status of the trades to get [Inbound, Outbound, Complete, Inactive]. |
||
sortOrder |
SortOrder
|
<optional> |
Asc | The order that the data will be returned in (Asc or Desc) |
limit |
Limit
|
<optional> |
10 | The number of assets returned in each request (10, 25, 50, or 100) |
Promise.<Array.<TradeAsset>>
Example
const noblox = require("noblox.js")
// Login using your cookie
const trades = await noblox.getTrades("Inbound")
# getUAIDs(userId, assetIds, exclusionListopt) → {Promise.<UAIDResponse>}
✅ Get a UserAssetID for a specific asset.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
userId |
number
|
The id of the user to search. |
|
assetIds |
Array.<number>
|
The ids of the assets to retrieve. |
|
exclusionList |
Array.<number>
|
<optional> |
The UAIDs to exclude from the search. |
Promise.<UAIDResponse>
Example
const noblox = require("noblox.js")
const UAIDInfo = await noblox.getUAIDs(80231025, [1974901902, 4255053867, 2705893733, 1532395])
# getUniverseInfo(universeId) → {Promise.<Array.<UniverseInformation>>}
🔓 Get the info for a universe.
Parameters:
Name | Type | Description |
---|---|---|
universeId |
number
|
Array.<number>
|
The id(s) of the universe(s). |
Promise.<Array.<UniverseInformation>>
Example
const noblox = require("noblox.js")
const universeInfo = await noblox.getUniverseInfo([ 2152417643 ])
# getUnreadConversationCount() → {Promise.<GetUnreadConversationCountResult>}
🔐 Get the number of unread conversations.
Promise.<GetUnreadConversationCountResult>
Example
const noblox = require("noblox.js")
// Login using your cookie
const unreadConversationCount = noblox.getUnreadConversationCount()
# getUnreadMessages(conversationIds, pageSize) → {Promise.<Array.<ChatConversationWithMessages>>}
🔐 Returns unread messages in the given conversations
Parameters:
Name | Type | Description |
---|---|---|
conversationIds |
Array.<number>
|
The IDs of the conversations you want unread messages from. |
pageSize |
number
|
Number of messages to return on each page. |
Promise.<Array.<ChatConversationWithMessages>>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.getUnreadMessages([8212952828])
# getUserConversations(pageNumberopt, pageSizeopt) → {Promise.<Array.<ChatConversation>>}
🔐 Get your conversations.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
pageNumber |
number
|
<optional> |
The page index. |
pageSize |
number
|
<optional> |
The size of each page. |
Promise.<Array.<ChatConversation>>
Example
const noblox = require("noblox.js")
// Login using your cookie
const conversations = await noblox.getUserConversations()
# getUserFunds(userId) → {Promise.<number>}
🔓 Gets the amount of robux for the authenticated user.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
Must match the userId of the authenticated user |
Promise.<number>
Example
const noblox = require("noblox.js")
// Login using your cookie
const currentUser = await noblox.setCookie(process.env.ROBLOXCOOKIE)
const robux = await noblox.getUserFunds(currentUser.id)
# getUserSocialLinks(userId) → {Promise.<PromotionChannelsResponse>}
🔐 Get the social link data (promotion channels) associated with a user.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user. |
Promise.<PromotionChannelsResponse>
Example
const noblox = require("noblox.js")
const userSocialLinks = await noblox.getUserSocialLinks(2416399685)
# getUserTransactions(transactionTypeopt, limit, sortOrderopt) → {Promise.<Array.<TransactionItem>>}
🔐 Get a user's transactions.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
transactionType |
"Sale"
|
"Purchase"
|
"AffiliateSale"
|
"DevEx"
|
"GroupPayout"
|
"AdImpressionPayout"
|
<optional> |
Sale | The type of transactions being fetched. |
limit |
number
|
The number of transactions being fetched in total. |
||
sortOrder |
SortOrder
|
<optional> |
Asc | The cursor for the next page. |
Promise.<Array.<TransactionItem>>
Example
const noblox = require("noblox.js")
// Login using your cookie
let transactions = await noblox.getUserTransactions("Sale", 10)
# getUsernameFromId(id) → {Promise.<string>}
✅ Get a user's username from their user id.
Parameters:
Name | Type | Description |
---|---|---|
id |
number
|
The id of the user. |
Promise.<string>
Example
const noblox = require("noblox.js")
let username = await noblox.getUsernameFromId(123456)
# getVerification(url, ignoreCacheopt, getBodyopt, jaropt) → {Promise.<GetVerificationResponse>}
🔐 Get the RequestVerificationToken from a url.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
url |
string
|
The url to get the token from. |
||
ignoreCache |
boolean
|
<optional> |
false | Determines whether the cache be ignored or not. |
getBody |
boolean
|
<optional> |
false | If the body and inputs should be returned in an object |
jar |
CookieJar
|
<optional> |
The CookieJar containing the .ROBLOSECURITY cookie. |
Promise.<GetVerificationResponse>
Example
const noblox = require("noblox.js")
// Login using your cookie.
const verificationTokenInfo = await noblox.getVerification()
# getVerificationInputs(html) → {Inputs}
✅ Get the verification inputs from the html.
Parameters:
Name | Type | Description |
---|---|---|
html |
string
|
function
|
| selector - The html to search or the cheerio selector to use. |
Example
const noblox = require("noblox.js")
const inputs = noblox.getVerificationInputs("htmlstuff")
# getWall(group, sortOrderopt, limitopt, cursoropt) → {Promise.<WallPostPage>}
🔓 Get the posts on the group wall.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
group |
number
|
The id of the group. |
|
sortOrder |
SortOrder
|
<optional> |
The order to get the players in. |
limit |
Limit
|
<optional> |
The maximum result per a page. |
cursor |
string
|
<optional> |
The cursor for the next page. |
Promise.<WallPostPage>
Example
const noblox = require("noblox.js")
// Login using your cookie
const wallPosts = await noblox.getWall(1)
# groupPayout(group, member, amount, recurringopt, usePercentageopt) → {Promise.<void>}
🔐 Pay group funds out to a user.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
group |
number
|
The id of the group. |
||
member |
number
|
Array.<number>
|
The member or array of members to payout. |
||
amount |
number
|
The amount of Robux for each recipient to receive. |
||
recurring |
boolean
|
<optional> |
false | If the payment is recurring. |
usePercentage |
boolean
|
<optional> |
false | If the amount is a percentage. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.groupPayout(1117747196, 55549140, 30)
# handleJoinRequest(group, userId, accept) → {Promise.<void>}
🔐 Accept/decline a user's join request.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
userId |
number
|
The id of the user. |
accept |
boolean
|
If the user should be accepted into the group. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.handleJoinRequest(1, 1, true)
# http(url, options, ignoreLoginError) → {Promise.<string>}
✅ Send an http request to url with options.
Parameters:
Name | Type | Description |
---|---|---|
url |
string
|
The url to request to. |
options |
object
|
The options to send with the request. |
ignoreLoginError |
boolean
|
If any login errors should be ignored. |
Promise.<string>
Example
const noblox = require("noblox.js")
const body = await noblox.http("https://roblox.com/login", { method: "GET" })
# incrementDatastoreEntry(universeId, datastoreName, entryKey, incrementBy, scopeopt, robloxEntryUserIDsopt, robloxEntryAttributesopt) → {Promise.<DatastoreEntry>}
☁️ Increments the value for an entry by a given amount, or create a new entry with that amount.
API Key Permissions:- Create entry
- Update entry
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
universeId |
number
|
The ID of the universe |
||
datastoreName |
string
|
Name of the data store |
||
entryKey |
string
|
The key which identifies the entry. |
||
incrementBy |
number
|
The amount by which the entry should be incremented, or the starting value if it does not exist |
||
scope |
string
|
<optional> |
global | Defaults to global, similar to Lua API. |
robloxEntryUserIDs |
Array.<number>
|
<optional> |
Comma-separated list of Roblox user IDs the entry is tagged with. If not provided, existing user IDs are cleared. |
|
robloxEntryAttributes |
object
|
<optional> |
If not provided, existing attributes are cleared. |
Promise.<DatastoreEntry>
Example
const noblox = require("noblox.js")
const entry = await noblox.incrementDatastoreEntry({ universeId: 127407415, datastoreName: 'LevelStore', entryKey: 'Level_User', incrementBy: 2 })
# jar(sessionOnlyopt) → {CookieJar}
✅ Create a jar file based on sessionOnly.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
sessionOnly |
boolean
|
<optional> |
The session to use to create the jar file. |
Example
const noblox = require("noblox.js")
const jar = noblox.jar()
# leaveGroup(group) → {Promise.<void>}
🔐 Leave a group.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.leaveGroup(1)
# markChatAsRead(conversationId, endMessageId) → {Promise.<void>}
🔐 Mark a chat as read.
Parameters:
Name | Type | Description |
---|---|---|
conversationId |
number
|
The id of the conversation. |
endMessageId |
string
|
The last message to read. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.markChatAsRead(8212952828, 'e775e103-876f-4332-84ab-1ea14f326d39')
# markChatAsSeen(conversationIds) → {Promise.<void>}
🔐 Mark chats as seen.
Parameters:
Name | Type | Description |
---|---|---|
conversationIds |
Array.<number>
|
An array with conversationIds. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.markChatAsSeen([1, 2, 3])
# message(recipient, subject, body, replyMessageIdopt, includePreviousMessageopt) → {Promise.<void>}
🔐 Send a message. NOTE: Roblox blocks web servers and proxies from sending messages.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
recipient |
number
|
The id of the user. |
||
subject |
string
|
The subject of the message. |
||
body |
string
|
The body of the message. |
||
replyMessageId |
number
|
<optional> |
The messageId to reply to. |
|
includePreviousMessage |
boolean
|
<optional> |
false | The previous or next page cursor. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.message(1, "A subject", "A body", 1234, true)
# multiGetLatestMessages(conversationIds) → {Promise.<Array.<ChatConversationWithMessages>>}
🔐 Get multiple of the latest messages.
Parameters:
Name | Type | Description |
---|---|---|
conversationIds |
Array.<number>
|
An array with the conversationIds. |
Promise.<Array.<ChatConversationWithMessages>>
Example
const noblox = require("noblox.js")
// Login using your cookie
const recentMessages = await noblox.multiGetLatestMessages([1, 2, 3])
# onAuditLog(group)
🔐 An event for when an audit log event is added.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
An EventEmitter that emits when an action is added to the audit log.
Example
const noblox = require("noblox.js")
// Login using your cookie
const auditEvent = noblox.onAuditLog(1)
auditEvent.on("data", function(data) {
console.log("New action!", data)
})
auditEvent.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onBlurbChange(userId)
✅ An event for when a user's blurb changes.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user. |
An EventEmitter that emits when a user's blurb changes.
Example
const noblox = require("noblox.js")
const blurbEvent = noblox.onBlurbChange(1)
blurbEvent.on("data", function(data) {
console.log("User's blurb changed!", data)
})
blurbEvent.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onFriendRequest()
🔐 An event for when a user sends you a friend request.
An EventEmitter that emits when a user sends you a friend request.
Example
const noblox = require("noblox.js")
// Login using your cookie
const friendRequestEvent = noblox.onFriendRequest()
friendRequestEvent.on("data", function(data) {
console.log("New friend request! ", data)
})
friendRequestEvent.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onGroupTransaction(groupId, transactionType)
🔐 An event for when a group transaction is made, for example a purchase. This event has a rate of one request per 60 sec, which is more than the typical 10 seconds. This is due to the unusually low rate limit on the transactions endpoint.
Note: The created
field returned by this event will always have 0 milliseconds. This is due to a quirk on Roblox's side:
These millisecond values fluctuate, meaning the event can misfire. Removing them avoids this problem.
Parameters:
Name | Type | Description |
---|---|---|
groupId |
number
|
The id of the group. |
transactionType |
"Sale"
|
"Purchase"
|
"AffiliateSale"
|
"DevEx"
|
"GroupPayout"
|
"AdImpressionPayout"
|
The transaction type. |
An EventEmitter that emits when a transaction is made.
Example
const noblox = require("noblox.js")
// Login using your cookie
const transactionEvent = noblox.onGroupTransaction(1)
transactionEvent.on("data", function(data) {
console.log("New Transaction!", data)
})
transactionEvent.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# async onJoinRequest(group)
🔐 An event for when someone makes a request to join the group.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
An EventEmitter that emits when someone tries to join.
Example
const noblox = require("noblox.js")
// Login using your cookie
const e = noblox.onJoinRequest()
e.on("data", function(data) {
console.log("New request!", data)
})
e.on("error", function (err) {
...
})
# async onJoinRequestHandle(group)
🔐 An event for when someone is added to the join requests, which allows you to handle the join request as part of a screening process. Emits all join requests and waits until all of them have been resolved by firing the handle event with the request and either true or false. You can also pass a third argument callback to handle to execute once the join request has been handled. Once all requests on a page have been resolved, the next page is collected. Make sure that all join requests are handled in some way. Because this function has to wait for input, it does handle timeouts but does them within the function as opposed to within shortPoll.
The use of this function is generally pretty complex. If it is not as working as you expect, you may actually be wanting
to use onJoinRequest
.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
An EventEmitter that emits when someone tries to join.
Example
const noblox = require("noblox.js")
// Login using your cookie
var blacklist = [1, 261]
var evt = noblox.onJoinRequestHandle(18)
evt.on('data', function (request) {
noblox.getIdFromUsername(request.username).then(function (id) {
for (var i = 0; i < blacklist.length; i++) {
if (blacklist[i] === id) {
evt.emit('handle', request, false);
return;
}
}
evt.emit('handle', request, true, function () {
console.log(`Welcome ${id} to the group`)
});
});
});
# onMessage()
🔐 An event for when a user sends you a message via. the older 'email-like' message system. To receive chat messages,
see the onNewMessage
method.
An EventEmitter that emits when a user sends you a message.
Example
const noblox = require("noblox.js")
// Login using your cookie
const messageEvent = noblox.onMessage()
messageEvent.on("data", function(data) {
console.log("New message! ", data)
})
messageEvent.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onNewConversation()
🔐 An event for when a conversation is created.
An EventEmitter that emits when a conversation is created.
Example
const noblox = require("noblox.js")
// Login using your cookie
const conversationEvent = noblox.onNewConversation()
conversationEvent.on("data", function(data) {
console.log("New conversation! ", data)
})
conversationEvent.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onNewMessage()
🔐 An event for when someone messages you via. chat. This event will only emit for messages sent via. chat windows on the website - those in the pop-up/overlay window. To handle messages sent via. the older email-like message function, see onMessage.
An EventEmitter that emits when someone messages you.
Example
const noblox = require("noblox.js")
// Login using your cookie
const messageEvent = noblox.onNewMessage()
messageEvent.on("data", function(data) {
console.log("New chat message! ", data)
})
messageEvent.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onNewMessageBySelf()
🔐 An event for when you send a new message.
An EventEmitter that emits when you send a new message.
Example
const noblox = require("noblox.js")
// Login using your cookie
const messageSent = noblox.onNewMessageBySelf()
messageSent.on("data", function(data) {
console.log("Sent chat message! ", data)
})
messageSent.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onNotification()
🔐 An event for when you get a notification.
An EventEmitter that emits when you get a notification.
Example
const noblox = require("noblox.js")
// Login using your cookie
const notification = noblox.onNotification()
notification.on("data", function(data) {
console.log("New notification! ", data)
})
notification.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onPartyDeleted()
🔐 An event for when a party is deleted.
An EventEmitter that emits when a party is deleted.
Example
const noblox = require("noblox.js")
// Login using your cookie
const partyDeleted = noblox.onPartyDeleted()
partyDeleted.on("data", function(data) {
console.log("Party deleted! ", data)
})
partyDeleted.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onPartyInvite()
🔐 An event for when you're invited to a party.
An EventEmitter that emits when you're invited to a party.
Example
const noblox = require("noblox.js")
// Login using your cookie
const partyInvite = noblox.onPartyInvite()
partyInvite.on("data", function(data) {
console.log("Invited to party! ", data)
})
partyInvite.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onPartyJoinedGame()
🔐 An event for when a party joins a game.
An EventEmitter that emits when a party joins a game.
Example
const noblox = require("noblox.js")
// Login using your cookie
const partyJoinedGame = noblox.onPartyJoinedGame()
partyJoinedGame.on("data", function(data) {
console.log("Party joined game! ", data)
})
partyJoinedGame.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onPartyLeftGame()
🔐 An event for when a party leaves a game.
An EventEmitter that emits when a party leaves a game.
Example
const noblox = require("noblox.js")
// Login using your cookie
const partyLeftGame = noblox.onPartyLeftGame()
partyLeftGame.on("data", function(data) {
console.log("Party left game! ", data)
})
partyLeftGame.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onPartySelfJoined()
🔐 An event for when you join a party.
An EventEmitter that emits when you join a party.
Example
const noblox = require("noblox.js")
// Login using your cookie
const joinedParty = noblox.onPartySelfJoined()
joinedParty.on("data", function(data) {
console.log("You joined a party! ", data)
})
joinedParty.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onPartySelfLeft()
🔐 An event for when you leave a party.
An EventEmitter that emits when you leave a party.
Example
const noblox = require("noblox.js")
// Login using your cookie
const leftParty = noblox.onPartySelfLeft()
leftParty.on("data", function(data) {
console.log("You left a party! ", data)
})
leftParty.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onPartyUserJoined()
🔐 An event for when someone joins a party.
An EventEmitter that emits when someone joins a party.
Example
const noblox = require("noblox.js")
// Login using your cookie
const partyJoined = noblox.onPartyUserJoined()
partyJoined.on("data", function(data) {
console.log("Someone joined a party! ", data)
})
partyJoined.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onPartyUserLeft()
🔐 An event for when someone leaves a party.
An EventEmitter that emits when someone leaves a party.
Example
const noblox = require("noblox.js")
// Login using your cookie
const partyLeft = noblox.onPartyUserLeft()
partyLeft.on("data", function(data) {
console.log("Someone left party! ", data)
})
partyLeft.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onShout(group)
🔐 An event for when the shout is changed.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
An EventEmitter that emits when someone shouts.
Example
const noblox = require("noblox.js")
// Login using your cookie
const shoutEvent = noblox.onShout(1)
shoutEvent.on("data", function(data) {
console.log("New Shout!", data)
})
shoutEvent.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onUserOnline()
🔐 An event for when someone comes online.
An EventEmitter that emits when someone comes online.
Example
const noblox = require("noblox.js")
// Login using your cookie
const userOnlineEvent = noblox.onUserOnline()
userOnlineEvent.on("data", function(data) {
console.log("User online! ", data)
})
userOnlineEvent.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onUserTyping()
🔐 An event for when someone starts typing in a chat.
An EventEmitter that emits when someone starts typing in a chat.
Example
const noblox = require("noblox.js")
// Login using your cookie
const userTyping = noblox.onUserTyping()
userTyping.on("data", function(data) {
console.log("User typing! ", data)
})
userTyping.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# onWallPost(group)
🔐 An event for when someone posts on the group wall.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
An EventEmitter that emits when someone posts on the group wall.
Example
const noblox = require("noblox.js")
// Login using your cookie
const wallpostEvent = noblox.onWallPost(1)
wallpostEvent.on("data", function(data) {
console.log("New post!", data)
})
wallpostEvent.on("error", function(err) {
console.error("Something went wrong: ", err)
// Handle error as needed
})
# outfitDetails(outfitId) → {Promise.<AvatarOutfitDetails>}
✅ Get the details of an outfit.
Parameters:
Name | Type | Description |
---|---|---|
outfitId |
number
|
The id of the outfit. |
Promise.<AvatarOutfitDetails>
Example
const noblox = require("noblox.js")
const outfit = await noblox.outfitDetails(111)
# outfits(userId, pageopt, itemsPerPageopt) → {Promise.<GetOutfitsResult>}
✅ Get a user's outfits.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
userId |
number
|
The userId of the user. |
|
page |
number
|
<optional> |
The page to index. |
itemsPerPage |
number
|
<optional> |
The number of results on each page. |
Promise.<GetOutfitsResult>
Example
const noblox = require("noblox.js")
const outfits = await noblox.outfits(1)
# postToTopic(universeId, topic, data) → {Promise.<boolean>}
☁️ Publish a message to a subscribed topic.
Parameters:
Name | Type | Description |
---|---|---|
universeId |
number
|
The id of the universe. |
topic |
string
|
The name of the topic. |
data |
Object
|
string
|
The data to post. |
Promise.<boolean>
Example
const noblox = require("noblox.js")
const data = { targetUser: 123456789, staffMember: 1210019099, action: "Kick" }
await noblox.publishToTopic(2152417643, "ModerateUser", data)
# promote(group, target) → {Promise.<ChangeRankResult>}
🔐 Promote a user.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
target |
number
|
The id of the user. |
Promise.<ChangeRankResult>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.promote(1, 2)
# redrawAvatar() → {Promise.<void>}
🔐 Redraw your avatar.
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.redrawAvatar()
# refreshCookie(cookieopt) → {Promise.<string>}
🔐 Refreshes the stored cookie, stores it, and returns it.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
cookie |
string
|
<optional> |
The cookie to refresh. |
- Deprecated:
Promise.<string>
Example
const noblox = require("noblox.js")
const newCookie = await noblox.refreshCookie("COOKIEHERE")
# removeAssetId(assetId) → {Promise.<void>}
🔐 Removes an asset from your avatar.
Parameters:
Name | Type | Description |
---|---|---|
assetId |
number
|
The assetId to remove. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.removeAssetId(1)
# removeFriend(userId) → {Promise.<void>}
🔐 Remove a user from your friends list.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.removeFriend(123456)
# removeFromGroupConversation(conversationId, userId) → {Promise.<ConversationRemoveResponse>}
🔐 Remove a user from the group conversation.
Parameters:
Name | Type | Description |
---|---|---|
conversationId |
number
|
The id of the conversation. |
userId |
number
|
The id of the user. |
Promise.<ConversationRemoveResponse>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.removeFromGroupConversation(1, 2)
# renameGroupConversation(conversationId, title) → {Promise.<ConversationRenameResponse>}
🔐 Rename a group conversation.
Parameters:
Name | Type | Description |
---|---|---|
conversationId |
number
|
The id of the conversation. |
title |
string
|
The new title of the group. |
Promise.<ConversationRenameResponse>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.renameGroupConversation(1, "A cool group.")
# searchGroups(keyword, prioritizeExactMatchopt, limitopt) → {Promise.<Array.<GroupSearchItem>>}
✅ Searches for groups by a given search term.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
keyword |
string
|
The keyword or search term to search by. |
||
prioritizeExactMatch |
boolean
|
<optional> |
false | Whether or not to prioritize the exact match for the keyword |
limit |
number
|
<optional> |
100 | The maximum number of groups to return. Supply 0 to apply no limit, returning all results. Note: This may significantly increase the time to execute and return potentially thousands of results. |
Promise.<Array.<GroupSearchItem>>
Example
const noblox = require("noblox.js")
const groupInfo = await noblox.searchGroups("noblox.js");
# searchUsers(keyword, limit, cursor) → {Promise.<Array.<UserSearchResult>>}
✅ Gets a list of users matching the keyword
Parameters:
Name | Type | Description |
---|---|---|
keyword |
string
|
The search term to use |
limit |
10
|
25
|
50
|
100
|
The maximum number of matching users to return |
cursor |
string
|
The cursor to use when fetching the next or previous page |
Promise.<Array.<UserSearchResult>>
Example
const noblox = require("noblox.js")
noblox.searchUsers("bob", 10, "cursorstring")
# sendChatMessage(conversationId, message) → {Promise.<SendChatResponse>}
🔐 Send a message in a chat.
Parameters:
Name | Type | Description |
---|---|---|
conversationId |
number
|
The id of the conversation. |
message |
string
|
The message to send. |
Promise.<SendChatResponse>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.sendChatMessage(1, "Hello world!")
# sendFriendRequest(userId) → {Promise.<void>}
🔐 Send a friend request to a user.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.sendFriendRequest(123456)
# sendTrade(targetUserId, sendingOffer, recievingOffer) → {Promise.<SendTradeResponse>}
🔐 Send a trade to another user.
Parameters:
Name | Type | Description |
---|---|---|
targetUserId |
number
|
The user to send the trade to. |
sendingOffer |
TradeOffer
|
The offer to send to the other user. |
recievingOffer |
TradeOffer
|
The offer you are requesting from the other user. |
Promise.<SendTradeResponse>
Example
const noblox = require("noblox.js")
noblox.sendTrade(80231025, { userAssetIds: [23289506393] }, { userAssetIds: [32924150919] })
# setAPIKey(apiKey) → {Promise.<boolean>}
🔑 Sign in with an API key.
Parameters:
Name | Type | Description |
---|---|---|
apiKey |
string
|
The api key to sign in with. |
Promise.<boolean>
Example
const noblox = require("noblox.js")
noblox.setAPIKey("A3H+1rfQj0Kwz0CsSO2ciuT/e/ZHekahvehGG3PPmFOASZx1")
# setAvatarBodyColors(headColorId, torsoColorId, rightArmColorId, leftArmColorId, rightLegColorId, leftLegColorId) → {Promise.<void>}
🔐 Set the colors of your avatar.
Parameters:
Name | Type | Description |
---|---|---|
headColorId |
number
|
The BrickColor Code of the head. |
torsoColorId |
number
|
The BrickColor Code of the torso. |
rightArmColorId |
number
|
The BrickColor Code of the right arm. |
leftArmColorId |
number
|
The BrickColor Code of the left arm. |
rightLegColorId |
number
|
The BrickColor Code of the right leg. |
leftLegColorId |
number
|
The BrickColor Code of the left leg. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.setAvatarBodyColors(125, 125, 125, 125, 125, 125)
# setAvatarScales(height, width, head, depthopt, proportionopt, bodyTypeopt) → {Promise.<void>}
🔐 Set the scale of your avatar.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
height |
number
|
The height scale of the avatar. |
|
width |
number
|
The width scale of the avatar. |
|
head |
number
|
The head scale of the avatar. |
|
depth |
number
|
<optional> |
The depth scale of the avatar. |
proportion |
number
|
<optional> |
The proportion scale of the avatar. |
bodyType |
number
|
<optional> |
The body type scale of the avatar. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.setAvatarScales(1, 1, 1, 1, 1, 1)
# setChatUserTyping(conversationId, isTyping) → {Promise.<UpdateTypingResponse>}
🔐 Trigger the typing action in a conversation.
Parameters:
Name | Type | Description |
---|---|---|
conversationId |
number
|
The id of the conversation. |
isTyping |
boolean
|
If the user is typing. |
Promise.<UpdateTypingResponse>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.setChatUserTyping(1, true)
# setCookie(cookie, validateopt) → {Promise.<AuthenticatedUserData>}
🔑 Sign in with a cookie.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
cookie |
string
|
The cookie to sign in with. |
||
validate |
boolean
|
<optional> |
true | Whether to validate the cookie or not. |
Promise.<AuthenticatedUserData>
Example
const noblox = require("noblox.js")
noblox.setCookie("cookie").then(function() {
//your code here
})
# setDatastoreEntry(universeId, datastoreName, entryKey, body, scopeopt, matchVersionopt, exclusiveCreateopt, robloxEntryUserIDsopt, robloxEntryAttributesopt) → {Promise.<EntryVersion>}
☁️ Sets the value, metadata and user IDs associated with an entry.
Note: You cannot use both matchVersion and exclusiveCreate. MD5 checksum is automatically generated.
API Key Permissions:- Create entry
- Update entry
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
universeId |
number
|
The ID of the universe |
||
datastoreName |
string
|
Name of the data store |
||
entryKey |
string
|
The key which identifies the entry. |
||
body |
any
|
The value the key should be set to. |
||
scope |
string
|
<optional> |
global | Defaults to global, similar to Lua API. |
matchVersion |
string
|
<optional> |
Only update if current version matches this. |
|
exclusiveCreate |
boolean
|
<optional> |
false | Only create the entry if it does not exist. |
robloxEntryUserIDs |
Array.<number>
|
<optional> |
Comma-separated list of Roblox user IDs the entry is tagged with. If not provided, existing user IDs are cleared. |
|
robloxEntryAttributes |
object
|
<optional> |
If not provided, existing attributes are cleared. |
Promise.<EntryVersion>
Example
const noblox = require("noblox.js")
const response = await noblox.setDatastoreEntry({ universeId: 127407415, datastoreName: 'LevelStore', entryKey: 'Level_Random', body: 230, robloxEntryUserIDs: [55549140], robloxEntryAttributes: { node: true } }))
# setGroupDescription(group, descriptionopt) → {Promise.<GroupDescriptionResult>}
🔐 Update a group description
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
group |
number
|
The id of the group. |
||
description |
string
|
<optional> |
"" | The new description for the group |
Promise.<GroupDescriptionResult>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.setGroupDescription(1, "Group Description!")
# setGroupName(group, nameopt) → {Promise.<GroupNameResult>}
🔐 Update a group name. This method will trigger a Robux charge to your account, and can only be performed by the group owner.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
group |
number
|
The id of the group. |
|
name |
string
|
<optional> |
The new name for the group |
Promise.<GroupNameResult>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.setGroupName(1, "Cool group")
# setOptions(newOptions)
✅ Updates library options. This allows you to modify settings such as time-out, or number of event retries without altering the settings.json file. Objects passed to this function should match the format of the settings.json file. Unknown keys, or malformed options will be rejected with an error.
Parameters:
Name | Type | Description |
---|---|---|
newOptions |
Partial.<NobloxOptions>
|
The new options to set, structured as per settings.json |
- See:
-
settings.json - default package settings
void
Example
const noblox = require("noblox.js")
// This example overrides getPlayerThumbnail()'s response URL when a thumbnail is moderated.
// You usually want to run this before logging in with your cookie.
noblox.setOptions({
thumbnail: {
failedUrl: {
blocked: "https://raw.githubusercontent.com/noblox/noblox.js/master/img/noblox-js.png"
}
}
})
# setPlayerAvatarType(avatarType) → {Promise.<void>}
🔐 Set the type of your avatar.
Parameters:
Name | Type | Description |
---|---|---|
avatarType |
PlayerAvatarType
|
The type of your avatar. (R6 or R15) |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.setPlayerAvatarType("R6")
# setRank(group, target, rank) → {Promise.<Role>}
🔐 Change a user's rank.
Parameters:
Name | Type | Description |
---|---|---|
group |
number
|
The id of the group. |
target |
number
|
The id of the user whose rank is being changed. |
rank |
number
|
string
|
Role
|
The rank, roleset ID, name of the role, or the actual Role itself. |
Promise.<Role>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.setRank(1, 1, "Customer")
# setWearingAssets(assetIds) → {Promise.<void>}
🔐 Set the assets your avatar is wearing.
Parameters:
Name | Type | Description |
---|---|---|
assetIds |
Array.<number>
|
An array of asset IDs to wear. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.setWearingAssets([1, 2, 3])
# shortPoll(getLatest) → {Promise.<GetLatestResponse>}
✅ This is the base for events that do not rely on true streams. The getLatest
function receives some value that represents the latest version of something (eg. a date or unique ID) and determines if there is new information, every time it is fired it waits delay
ms before being fired again. Every time it must return an object with the field latest
, representing the latest value (which will not change if new information was not received), and an array data
which has the new values (if there are multiple they each have their own index, if there is only one then it is by itself in the array). If latest
is equal to -2, the returned data will be processed even if it is the initial run (which usually only establishes the latest value). If the return object has a true repeat
value, the function latest will be run again immediately after. If delay
is a string it will take the number from that string key in the event
object of the settings.json file.
When the function is first called it will initialize getLatest
with the value -1 and then emit the connect
event. Whenever data is received, it will emit the data
event for each value. If the close
event is emitted the function will no longer run. If an error occurs the error
event will be emitted, the function will log a retry and after the number of max retries as specified by settings, it will emit the close
event.
The getLatest
function will be marked as failed if it does not resolve within timeout
ms (which can be disabled if timeout is negative). If getLatest fails for any reason (including timeout) it will be retried maxRetries
times before stopping.
Parameters:
Name | Type | Description |
---|---|---|
getLatest |
function
|
The function to use to get the latest. Should return an object with key 'data' - an array containing output data, and the new 'latest' value. |
Promise.<GetLatestResponse>
# shout(group, messageopt) → {Promise.<GroupShout>}
🔐 Change a group's shout.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
group |
number
|
The id of the group. |
||
message |
string
|
<optional> |
"" | The message to shout |
Promise.<GroupShout>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.shout(1, "Hello world!")
# start121Conversation(userId) → {Promise.<void>}
🔐 Start a conversation with another user.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.start121Conversation(1)
# startCloudEditConversation(placeId) → {Promise.<void>}
🔐 Start a Cloud Edit/Team Create conversation.
Parameters:
Name | Type | Description |
---|---|---|
placeId |
number
|
The id of the place. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.startCloudEditConversation(1117747196)
# startGroupConversation(userIds, title) → {Promise.<StartGroupConversationResponse>}
🔐 Start a group conversation.
Parameters:
Name | Type | Description |
---|---|---|
userIds |
Array.<number>
|
An array of userIds to add. |
title |
string
|
The title of the group. |
Promise.<StartGroupConversationResponse>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.startGroupConversation([1, 2, 3], "A group conversation.")
# timeout(promise, timeoutTime, reason) → {Promise.<unknown>}
A basic replacement for the Bluebird 'timeout' method. Returns a Promise which will resolve or reject with the result of the given promise once it resolves, or reject if the promise should fail to resolve within the supplied timeout. An optional reason can also be supplied.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
promise |
The Promise to apply a timeout to. |
||
timeoutTime |
The timeout to apply to the Promise. |
||
reason |
operation timed out | Optional String reason for the timeout. |
Promise.<unknown>
# unblock(userId) → {Promise.<void>}
🔐 Unblock a user.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.unblock(123456)
# unfollow(userId) → {Promise.<void>}
🔐 Unfollow a user.
Parameters:
Name | Type | Description |
---|---|---|
userId |
number
|
The id of the user. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.unfollow(123456)
# updateBadgeInfo(badgeId, nameopt, descriptionopt, enabledopt) → {Promise.<void>}
🔐 Configure a badge.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
badgeId |
number
|
The badge's id. |
|
name |
string
|
<optional> |
The new name of the badge. |
description |
string
|
<optional> |
The new description of the badge. |
enabled |
boolean
|
<optional> |
If the badge is enabled. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.updateBadgeInfo(1, "Badge", "A cool badge.", true)
# updateDeveloperProduct(universeId, productId, priceInRobux, nameopt, descriptionopt) → {Promise.<void>}
🔐 Update a developer product.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
universeId |
number
|
The id of the universe. |
|
productId |
number
|
The id of the product. |
|
priceInRobux |
number
|
The new price of the product. |
|
name |
string
|
<optional> |
The new name of the product. |
description |
string
|
<optional> |
The new description of the product. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.updateDeveloperProduct(1, 2, 10, "An Updated Developer Product", "My new updated product.")
# updateUniverse(universeId, settings) → {Promise.<UpdateUniverseResponse>}
🔐 Modifies a universe's settings
Parameters:
Name | Type | Description |
---|---|---|
universeId |
number
|
The universeId of the experience |
settings |
UniverseSettings
|
The settings to update |
Promise.<UpdateUniverseResponse>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.updateUniverse(2421261122, { name: "The best game ever!" })
# updateUniverseAccess(universeId, isPublicopt) → {Promise.<void>}
🔐 Modifies a universe's public access setting
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
universeId |
number
|
The universeId of the experience |
|
isPublic |
boolean
|
<optional> |
The visibility and access of the universe; shuts down all running instances if set to false |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.updateUniverseAccess(2421261122, true)
# uploadAnimation(data, itemOptionsopt, assetIdopt) → {Promise.<number>}
🔐 Upload an animation, either as a new asset or by overwriting an existing animation.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
string
|
Stream
|
The rbxm file containing the KeyframeSequence. |
|
itemOptions |
object
|
<optional> |
The options for the upload. Only optional if assetId is not provided. |
name |
string
|
<optional> |
The name of the animation. |
description |
string
|
<optional> |
The description for the animation. |
copyLocked |
boolean
|
<optional> |
If the animation is copy-locked. |
allowComments |
boolean
|
<optional> |
If comments are allowed. |
groupId |
number
|
<optional> |
The group to upload the animation to. This is ignored if the assetId is provided. |
assetId |
number
|
<optional> |
An existing assetId to overwrite. |
Promise.<number>
Example
const noblox = require("noblox.js")
const fs = require("fs")
// Login using your cookie
const assetId = await noblox.uploadAnimation(fs.readFileSync("./KeyframeSequence.rbxm"), {
name: "A cool animation",
description: "This is a very cool animation",
copyLocked: false, //The asset is allowed to be copied.
allowComments: false
}, 7132858975)
# uploadItem(name, assetType, file, groupIdopt) → {Promise.<UploadItemResponse>}
🔐 Upload an item.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string
|
The name of the asset. |
|
assetType |
number
|
||
file |
ReadStream
|
The read stream for the asset being uploaded. |
|
groupId |
number
|
<optional> |
The group to upload the asset to. |
Promise.<UploadItemResponse>
Example
const noblox = require("noblox.js")
const fs = require("fs")
// Login using your cookie
await noblox.uploadItem("A cool decal.", 13, fs.createReadStream("./Image.png"))
# uploadModel(data, itemOptionsopt, assetIdopt) → {Promise.<UploadModelResponse>}
🔐 Upload a model.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
string
|
Stream
|
The model data. |
|
itemOptions |
object
|
<optional> |
The options for the upload. |
name |
string
|
<optional> |
The name of the model. |
description |
string
|
<optional> |
The description for the model. |
copyLocked |
boolean
|
<optional> |
If the model is copy-locked. |
allowComments |
boolean
|
<optional> |
If comments are allowed. |
groupId |
number
|
<optional> |
The group to upload the model to. |
assetId |
number
|
<optional> |
An existing assetId to overwrite. |
Promise.<UploadModelResponse>
Example
const noblox = require("noblox.js")
const fs = require("fs")
// Login using your cookie
noblox.uploadModel(fs.readFileSync("./model.rbxm"), {
name: "A cool model",
description: "This is a very cool model",
copyLocked: false, //The asset is allowed to be copied.
allowComments: false,
groupId: 1
}, 1117747196)
# wearAssetId(assetId) → {Promise.<void>}
🔐 Wear a specific asset.
Parameters:
Name | Type | Description |
---|---|---|
assetId |
number
|
The assetId to wear. |
Promise.<void>
Example
const noblox = require("noblox.js")
// Login using your cookie
noblox.wearAssetId(1117747196)
Type Definitions
object
# AssetOwner
Properties:
Name | Type | Description |
---|---|---|
userId |
number
|
|
username |
string
|
|
buildersClubMembershipType |
number
|
object
# AssetRecentItem
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
number
|
||
name |
string
|
||
type |
RecentItemType
|
||
assetType |
AvatarAssetType
|
||
isEditable |
boolean
|
<optional> |
object
# AssetRecentItemsResult
Properties:
Name | Type | Description |
---|---|---|
data |
Array.<AssetRecentItem>
|
|
total |
number
|
object
# AssetTypeRulesModel
Properties:
Name | Type | Description |
---|---|---|
min |
number
|
|
max |
number
|
|
increment |
number
|
object
# AuditItem
Properties:
Name | Type | Description |
---|---|---|
actor |
AuditItemActor
|
|
actionType |
string
|
|
description |
object
|
|
created |
Date
|
object
# AuditPage
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
data |
Array.<AuditItem>
|
||
nextPageCursor |
string
|
<optional> |
|
previousPageCursor |
string
|
<optional> |
object
# AuthenticatedUserData
Properties:
Name | Type | Description |
---|---|---|
id |
number
|
|
name |
string
|
|
displayName |
string
|
object
# AvatarAsset
Properties:
Name | Type | Description |
---|---|---|
id |
number
|
|
name |
string
|
|
assetType |
AvatarAssetType
|
object
# AvatarBodyColors
Properties:
Name | Type | Description |
---|---|---|
headColorId |
number
|
|
torsoColorId |
number
|
|
rightArmColorId |
number
|
|
leftArmColorId |
number
|
|
rightLegColorId |
number
|
|
leftLegColorId |
number
|
object
# AvatarInfo
Properties:
Name | Type | Description |
---|---|---|
scales |
AvatarScale
|
|
playerAvatarType |
PlayerAvatarType
|
|
bodyColors |
AvatarBodyColors
|
|
assets |
Array.<AvatarAsset>
|
|
defaultShirtApplied |
boolean
|
|
defaultPantsApplied |
boolean
|
object
# AvatarOutfitDetails
Properties:
Name | Type | Description |
---|---|---|
id |
number
|
|
name |
string
|
|
assets |
Array.<AvatarAsset>
|
|
bodyColors |
Array.<AvatarBodyColors>
|
|
scale |
AvatarScale
|
|
playerAvatarType |
PlayerAvatarType
|
|
isEditable |
boolean
|
object
# AvatarRules
Properties:
Name | Type | Description |
---|---|---|
playerAvatarTypes |
Array.<string>
|
|
scales |
AvatarRulesScales
|
|
wearableAssetTypes |
Array.<WearableAssetType>
|
|
bodyColorsPalette |
Array.<BodyColorModel>
|
|
basicBodyColorsPalette |
Array.<BodyColorModel>
|
|
minimumDeltaEBodyColorDifference |
number
|
|
proportionsAndBodyTypeEnabledForUser |
boolean
|
|
defaultClothingAssetLists |
DefaultClothingAssetLists
|
|
bundlesEnabledForUser |
boolean
|
|
emotesEnabledForUser |
boolean
|
object
# AvatarScale
Properties:
Name | Type | Description |
---|---|---|
height |
number
|
|
width |
number
|
|
head |
number
|
|
depth |
number
|
|
proportion |
number
|
|
bodyType |
number
|
object
# BadgeInfo
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
number
|
||
name |
string
|
||
description |
string
|
<optional> |
|
displayName |
string
|
||
displayDescription |
string
|
<optional> |
|
enabled |
boolean
|
||
iconImageId |
number
|
||
displayIconImageId |
number
|
||
created |
Date
|
||
updated |
Date
|
||
statistics |
BadgeStatistics
|
||
awardingUniverse |
BadgeUniverse
|
object
# BadgeStatistics
Properties:
Name | Type | Description |
---|---|---|
pastDayAwardedCount |
number
|
|
awardedCount |
number
|
|
winRatePercentage |
number
|
object
# BodyColorModel
Properties:
Name | Type | Description |
---|---|---|
brickColorId |
number
|
|
hexColor |
string
|
|
name |
string
|
object
# BuyProductInfo
Properties:
Name | Type | Description |
---|---|---|
ProductId |
number
|
|
Creator |
object
|
|
Id |
number
|
|
PriceInRobux |
number
|
|
UserAssetId |
number
|
object
# ChartDataPointResponse
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
value |
number
|
<optional> |
|
date |
Date
|
<optional> |
object
# ChatConversation
Properties:
Name | Type | Description |
---|---|---|
id |
number
|
|
title |
string
|
|
initiator |
ChatParticipant
|
|
hasUnreadMessages |
boolean
|
|
participants |
Array.<ChatParticipant>
|
|
conversationType |
"OneToOneConversation"
|
"MultiUserConversation"
|
"CloudEditConversation"
|
|
conversationTitle |
ChatConversationTitle
|
|
lastUpdated |
Date
|
|
conversationUniverse |
ChatConversationUniverse
|
object
# ChatConversationTitle
Properties:
Name | Type | Description |
---|---|---|
titleForViewer |
string
|
|
isDefaultTitle |
boolean
|
object
# ChatConversationUniverse
Properties:
Name | Type | Description |
---|---|---|
universeId |
number
|
|
rootPlaceId |
number
|
object
# ChatConversationWithMessages
Properties:
Name | Type | Description |
---|---|---|
conversationId |
number
|
|
chatMessages |
Array.<ChatMessage>
|
"LuaChat"
|
"ConversationUniverse"
|
"PlayTogether"
|
"Party"
|
"GameLink"
|
"OldPlayTogether"
# ChatFeatureNames
object
# ChatMessage
Properties:
Name | Type | Description |
---|---|---|
id |
string
|
|
senderType |
"User"
|
"System"
|
|
sent |
string
|
|
read |
boolean
|
|
messageType |
"PlainText"
|
"Link"
|
"EventBased"
|
|
decorators |
Array.<string>
|
|
senderTargetId |
number
|
|
content |
string
|
|
link |
ChatMessageLink
|
|
eventBased |
ChatMessageEventBased
|
object
# ChatMessageEventBased
Properties:
Name | Type | Description |
---|---|---|
type |
"SetConversationUniverse"
|
|
setConversationUniverse |
ChatMessageSetConversationUniverseEventBased
|
object
# ChatMessageSetConversationUniverseEventBased
Properties:
Name | Type | Description |
---|---|---|
actorUserId |
number
|
|
universeId |
number
|
object
# ChatParticipant
Properties:
Name | Type | Description |
---|---|---|
type |
"User"
|
"System"
|
|
targetId |
number
|
|
name |
string
|
|
displayName |
string
|
object
# ChatRolloutFeature
Properties:
Name | Type | Description |
---|---|---|
featureName |
ChatFeatureNames
|
|
isRolloutEnabled |
boolean
|
object
# ChatSettings
Properties:
Name | Type | Description |
---|---|---|
chatEnabled |
boolean
|
Is chat enabled for the user. |
isActiveChatUser |
boolean
|
Was the Last ChatMessage Sent within the last x days or the account was created in the last x days? Note: user is active by default unless he does not chat for more than x days after account creation |
object
# CheckDeveloperProductNameResult
Properties:
Name | Type | Description |
---|---|---|
Success |
boolean
|
|
Message |
string
|
When success is true: "Name available", When success is false, you can get: "Product name already exists" |
object
# CollectibleEntry
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
userAssetId |
number
|
||
serialNumber |
number
|
<optional> |
|
assetId |
number
|
||
name |
string
|
||
recentAveragePrice |
number
|
||
originalPrice |
number
|
<optional> |
|
assetStock |
number
|
<optional> |
|
buildersClubMembershipType |
number
|
object
# ConfigureItemResponse
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string
|
||
assetId |
number
|
||
description |
string
|
<optional> |
|
price |
number
|
<optional> |
|
isCopyingAllowed |
boolean
|
<optional> |
object
# ConversationAddResponse
Properties:
Name | Type | Description |
---|---|---|
conversationId |
number
|
|
rejectedParticipants |
Array.<RejectedParticipant>
|
|
resultType |
string
|
|
statusMessage |
string
|
object
# ConversationRemoveResponse
Properties:
Name | Type | Description |
---|---|---|
conversationId |
number
|
|
resultType |
string
|
|
statusMessage |
string
|
object
# ConversationRenameResponse
Properties:
Name | Type | Description |
---|---|---|
conversationTitle |
string
|
|
resultType |
string
|
|
title |
ChatConversationTitle
|
|
statusMessage |
string
|
object
# DatastoreEntry
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
data |
any
|
||
metadata |
object
|
||
robloxEntryCreatedTime |
Date
|
(ISO datetime, UTC): the time at which the entry was created |
|
lastModified |
Date
|
(ISO datetime, UTC): the time at which the entry was updated |
|
robloxEntryVersion |
string
|
version of the entry being read |
|
robloxEntryAttributes |
string
|
<optional> |
|
robloxEntryUserIDs |
string
|
<optional> |
|
contentMD5 |
string
|
the base-64 encoded MD5 checksum of the content |
|
contentLength |
number
|
the content length in bytes |
object
# DatastoreKeysResult
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
keys |
Array
|
||
nextPageCursor |
string
|
<optional> |
object
# DatastoresResult
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
datastores |
Array
|
||
nextPageCursor |
string
|
<optional> |
object
# DefaultClothingAssetLists
Properties:
Name | Type | Description |
---|---|---|
defaultShirtAssetIds |
Array.<number>
|
|
defaultPantAssetIds |
Array.<number>
|
object
# DetailedTradeAsset
Properties:
Name | Type | Description |
---|---|---|
id |
number
|
|
serialNumber |
number
|
|
assetId |
number
|
|
name |
string
|
|
recentAveragePrice |
number
|
|
originalPrice |
number
|
|
assetStock |
number
|
|
membershipType |
string
|
object
# DetailedTradeOffer
Properties:
Name | Type | Description |
---|---|---|
user |
TradeUser
|
|
userAssets |
Array.<DetailedTradeAsset>
|
|
robux |
number
|
object
# DeveloperProduct
Properties:
Name | Type | Description |
---|---|---|
ProductId |
number
|
|
DeveloperProductId |
number
|
|
Name |
string
|
|
Description |
string
|
|
IconImageAssetId |
number
|
|
displayName |
string
|
|
displayDescription |
string
|
|
displayIcon |
number
|
|
PriceInRobux |
number
|
object
# DeveloperProductAddResult
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
universeId |
number
|
||
name |
string
|
||
priceInRobux |
number
|
||
description |
string
|
<optional> |
|
productId |
string
|
object
# DeveloperProductsResult
Properties:
Name | Type | Description |
---|---|---|
DeveloperProducts |
Array.<DeveloperProduct>
|
|
FinalPage |
boolean
|
|
PageSize |
number
|
object
# EntryVersion
Properties:
Name | Type | Description |
---|---|---|
version |
string
|
|
deleted |
boolean
|
|
contentLength |
number
|
|
createdTime |
Date
|
|
objectCreatedTime |
Date
|
object
# FollowEntry
Properties:
Name | Type | Description |
---|---|---|
isDeleted |
false
|
|
id |
number
|
|
name |
string
|
|
description |
string
|
|
created |
Date
|
|
displayName |
string
|
object
# FollowersPage
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
previousPageCursor |
string
|
<optional> |
|
nextPageCursor |
string
|
<optional> |
|
data |
Array.<FollowEntry>
|
object
# FollowingsPage
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
previousPageCursor |
string
|
<optional> |
|
nextPageCursor |
string
|
<optional> |
|
data |
Array.<FollowEntry>
|
object
# FriendEntry
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
created |
Date
|
||
id |
number
|
||
isBanned |
boolean
|
||
isDeleted |
boolean
|
||
isOnline |
boolean
|
<optional> |
|
name |
string
|
||
description |
string
|
<optional> |
|
displayName |
string
|
||
externalAppDisplayName |
string
|
<optional> |
|
friendFrequentRank |
number
|
||
friendFrequentScore |
number
|
||
presenceType |
UserPresenceType
|
<optional> |
object
# FriendRequestEntry
Properties:
Name | Type | Description |
---|---|---|
description |
string
|
|
created |
Date
|
|
isBanned |
boolean
|
|
id |
number
|
|
name |
string
|
|
displayName |
string
|
object
# FriendRequestsPage
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
previousPageCursor |
string
|
<optional> |
|
nextPageCursor |
string
|
<optional> |
|
data |
Array.<FriendRequestEntry>
|
object
# GameInstance
Properties:
Name | Type | Description |
---|---|---|
id |
string
|
|
maxPlayers |
number
|
|
playing |
number
|
|
playerTokens |
Array.<string>
|
|
fps |
number
|
|
ping |
number
|
object
# GamePassData
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
number
|
||
name |
string
|
||
displayName |
string
|
||
productId |
number
|
<optional> |
|
price |
number
|
<optional> |
object
# GamePassResponse
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
gamePassId |
number
|
||
name |
string
|
<optional> |
|
description |
string
|
<optional> |
|
price |
number
|
<optional> |
|
isForSale |
boolean
|
<optional> |
|
iconChanged |
boolean
|
<optional> |
object
# GameRevenueResponse
Properties:
Name | Type | Description |
---|---|---|
placeId |
number
|
|
dataType |
number
|
|
dataGranularity |
number
|
|
startTime |
Date
|
|
endTime |
Date
|
|
data |
GameRevenueData
|
object
# GetLatestResponse
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
latest |
number
|
||
data |
object
|
||
repeat |
boolean
|
<optional> |
object
# GetRolloutSettingsResult
Properties:
Name | Type | Description |
---|---|---|
rolloutFeatures |
Array.<ChatRolloutFeature>
|
object
# GetVerificationResponse
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
body |
string
|
<optional> |
|
inputs |
Inputs
|
||
header |
string
|
object
# Group
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
number
|
||
name |
string
|
||
description |
string
|
||
owner |
GroupUser
|
||
shout |
GroupShout
|
<optional> |
|
memberCount |
number
|
||
isBuildersClubOnly |
boolean
|
||
publicEntryAllowed |
boolean
|
||
isLocked |
boolean
|
object
# GroupEconomyPermissions
Properties:
Name | Type | Description |
---|---|---|
spendGroupFunds |
boolean
|
|
advertiseGroup |
boolean
|
|
createItems |
boolean
|
|
manageItems |
boolean
|
|
addGroupPlaces |
boolean
|
|
manageGroupGames |
boolean
|
|
viewGroupPayouts |
boolean
|
object
# GroupGameInfo
Properties:
Name | Type | Description |
---|---|---|
id |
number
|
|
name |
string
|
|
description |
string
|
|
creator |
object
|
|
id |
number
|
|
type |
string
|
|
rootPlace |
object
|
|
id |
number
|
|
type |
string
|
|
created |
Date
|
|
updated |
Date
|
|
placeVisits |
number
|
object
# GroupJoinRequest
Properties:
Name | Type | Description |
---|---|---|
requester |
GroupJoinRequester
|
|
created |
Date
|
object
# GroupJoinRequester
Properties:
Name | Type | Description |
---|---|---|
userId |
number
|
|
username |
string
|
|
displayName |
string
|
object
# GroupJoinRequestsPage
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
previousPageCursor |
string
|
<optional> |
|
nextPageCursor |
string
|
<optional> |
|
data |
Array.<GroupJoinRequest>
|
object
# GroupManagementPermissions
Properties:
Name | Type | Description |
---|---|---|
manageRelationships |
boolean
|
|
manageClan |
boolean
|
|
viewAuditLogs |
boolean
|
object
# GroupMembershipPermissions
Properties:
Name | Type | Description |
---|---|---|
changeRank |
boolean
|
|
inviteMembers |
boolean
|
|
removeMembers |
boolean
|
object
# GroupPostsPermissions
Properties:
Name | Type | Description |
---|---|---|
viewWall |
boolean
|
|
postToWall |
boolean
|
|
deleteFromWall |
boolean
|
|
viewStatus |
boolean
|
|
postToStatus |
boolean
|
object
# GroupSearchItem
Properties:
Name | Type | Description |
---|---|---|
id |
number
|
|
name |
string
|
|
description |
string
|
|
memberCount |
number
|
|
publicEntryAllowed |
boolean
|
|
created |
Date
|
|
updated |
Date
|
object
# GroupShout
Properties:
Name | Type | Description |
---|---|---|
body |
string
|
|
poster |
GroupUser
|
|
created |
Date
|
|
updated |
Date
|
object
# GroupUser
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
userId |
number
|
||
username |
string
|
||
displayName |
string
|
||
hasVerifiedBadge |
boolean
|
<optional> |
object
# GroupView
Properties:
Name | Type | Description |
---|---|---|
___VIEWSTATE |
string
|
|
___VIEWSTATEGENERATOR |
string
|
|
___EVENTVALIDATION |
string
|
|
___RequestVerificationToken |
string
|
object
# HttpOptions
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
verification |
string
|
<optional> |
|
jar |
CookieJar
|
<optional> |
object
# IGroupPartial
Properties:
Name | Type | Description |
---|---|---|
Name |
string
|
|
Id |
number
|
|
EmblemUrl |
string
|
|
MemberCount |
number
|
|
Rank |
number
|
|
Role |
string
|
|
RoleId |
number
|
|
IsPrimary |
boolean
|
object
# Inputs
Properties:
Name | Type | Description |
---|---|---|
name: |
string
|
string With a provided name, this returns the input's value. |
object
# InventoryEntry
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
assetId |
number
|
||
name |
string
|
||
assetType |
string
|
||
created |
Date
|
||
updated |
Date
|
<optional> |
|
assetName |
string
|
<optional> |
|
userAssetId |
number
|
<optional> |
|
owner |
AssetOwner
|
<optional> |
object
# LoggedInUserData
Properties:
Name | Type | Description |
---|---|---|
UserID |
number
|
|
UserName |
string
|
|
RobuxBalance |
number
|
|
ThumbnailUrl |
string
|
|
IsAnyBuildersClubMember |
false
|
|
IsPremium |
boolean
|
object
# NobloxOptions
Properties:
Name | Type | Description |
---|---|---|
show_deprecation_warnings |
boolean
|
Prints console warnings for functions that are being polyfilled by newer methods due to upstream Roblox API changes |
session_only |
boolean
|
Minimizes data usage and speed up requests by only saving session cookies, disable if you need other cookies to be saved as well. (Default: true) |
max_threads |
number
|
This is usually used for functions that have to receive a lot of pages at once. Only this amount will be queued up as to preserve memory, make this as high as possible for fastest responses (although it will be somewhat limited by maxSockets). (Default: 50) |
timeout |
number
|
Timeout for http requests. This is necessary for functions that make a very large number of requests, where it is possible some simply won't connect. (Default: 10000) |
event |
object
|
|
maxRetries |
number
|
Maximum number of consecutive retries after an event times out or fails in some other way. (Default: 5) |
timeout |
number
|
Maximum time (in milliseconds) a request can take. If your server has extremely high latency you may have to raise this. (Default: 10000) |
defaultDelay |
number
|
The poll time in milliseconds by default. A lower number will detect changes much quicker but will stress the network, a higher one does the opposite. (Default: 10000) |
onAuditLog |
number
|
The poll time in milliseconds to check for new audit log entries. A lower number will detect changes much quicker but will stress the network, a higher one does the opposite. (Default: 10000) |
onWallPost |
number
|
The poll time in milliseconds to check for new wall posts. A lower number will detect changes much quicker but will stress the network, a higher one does the opposite. (Default: 10000) |
onJoinRequestHandle |
number
|
The poll time in milliseconds to check for new join requests. A lower number will detect changes much quicker but will stress the network, a higher one does the opposite. (Default: 10000) |
onJoinRequest |
number
|
The poll time in milliseconds to check for new join requests. A lower number will detect changes much quicker but will stress the network, a higher one does the opposite. (Default: 10000) |
onShout |
number
|
The poll time in milliseconds to check for a new shout message. A lower number will detect changes much quicker but will stress the network, a higher one does the opposite. (Default: 10000) |
onBlurbChange |
number
|
The poll time in milliseconds to check for a new blurb message. A lower number will detect changes much quicker but will stress the network, a higher one does the opposite. (Default: 10000) |
onGroupTransaction |
number
|
The poll time in milliseconds to check for new transaction log entries. A lower number will detect changes much quicker but will stress the network, a higher one does the opposite. This endpoint has a low rate limit. (Default: 30000) |
thumbnail |
object
|
|
maxRetries |
number
|
Maximum number of retries to retrieve a pending thumbnail, rare, but occurs with uncached users (Roblox's cache) (Default: 2) |
retryDelay |
number
|
The time to wait between consecutive retries of retrieving pending thumbnails. (Default: 500) |
failedUrl |
object
|
|
failedUrl.pending |
string
|
The image URL to provide when an asset thumbnail is still pending; defaults to Roblox moderation icon via noblox.js's GitHub repo at https://noblox.js.org/moderatedThumbnails/moderatedThumbnail_{size}.png |
failedUrl.blocked |
string
|
The image URL to provide when an asset thumbnail has been moderated by Roblox; defaults to Roblox moderation icon via noblox.js's GitHub repo at https://noblox.js.org/moderatedThumbnails/moderatedThumbnail_{size}.png |
queue |
object
|
|
Message |
object
|
|
Message.delay |
number
|
Although messages do have a floodcheck, it is not instituted immediately so this is disabled by default. If you are sending a lot of messages set a delay around 10-15 seconds (10000-15000). (Default: 0) |
cache |
object
|
|
XCSRF |
object
|
XCSRF tokens expire 30 minutes after being created. Until they expire, however, no new tokens can be made. Sometimes an XCSRF token has already been created for the user so the server doesn't know when to collect a new one. During transitions some requests may use invalid tokens. For now, new XCSRF tokens are automatically retrieved when cached ones get rejected. |
XCSRF.expire |
number
|
boolean
|
Default: 1800 |
XCSRF.refresh |
number
|
boolean
|
Default: false |
Verify |
object
|
Verification tokens seem to last extremely long times. |
Verify.expire |
number
|
boolean
|
Default: 7200 |
Verify.refresh |
number
|
boolean
|
Default: 3600 |
Roles |
object
|
This should be fine unless your group changes its ranks often. |
Roles.expire |
number
|
boolean
|
Default: 600 |
Roles.refresh |
number
|
boolean
|
Default: true |
RolesetId |
object
|
Disable this completely if you don't plan on ever changing your exile bot's rank. |
RolesetId.expire |
number
|
boolean
|
Default: 86400 |
RolesetId.refresh |
number
|
boolean
|
Default: false |
Product |
object
|
Disabled by default for security (price checks). If you are only working with ROBLOX assets, however, you can set this to something high (since ROBLOX product info rarely changes). |
Product.expire |
number
|
boolean
|
Default: false |
Product.refresh |
number
|
boolean
|
Default: false |
NameFromID |
object
|
Caches a user's username based on their ID. It is not on by default because it is an uncontrollable change but the option is there to cache it if you would like. |
NameFromID.expire |
number
|
boolean
|
Default: false |
NameFromID.refresh |
number
|
boolean
|
Default: false |
IDFromName |
object
|
Permanent cache for a user's ID based on their name. There is no reason this would ever change (changing names would re-match it and old names cannot be reused by other accounts). Only disable if you want this to match current names only. |
IDFromName.expire |
number
|
boolean
|
Default: true |
IDFromName.refresh |
number
|
boolean
|
Default: false |
SenderId |
object
|
Permanent cache for the sender's user ID. This should literally never change. |
SenderId.expire |
number
|
boolean
|
Default: true |
SenderId.refresh |
number
|
boolean
|
Default: false |
Rank |
object
|
Caches rank by user ID. Changes cannot be anticipated so this is not enabled by default. |
Rank.expire |
number
|
boolean
|
Default: false |
Rank.refresh |
number
|
boolean
|
Default: false |
object
# OnUserTypingChatEvent
Properties:
Name | Type | Description |
---|---|---|
UserId |
number
|
|
ConversationId |
number
|
|
IsTyping |
boolean
|
object
# PlaceInformation
Properties:
Name | Type | Description |
---|---|---|
placeId |
number
|
|
name |
string
|
|
sourceName |
string
|
|
sourceDescription |
string
|
|
url |
string
|
|
builder |
string
|
|
builderId |
number
|
|
hasVerifiedBadge |
boolean
|
|
isPlayable |
boolean
|
|
reasonProhibited |
string
|
|
universeId |
number
|
|
universeRootPlaceId |
number
|
|
price |
number
|
|
imageToken |
string
|
"Computer"
|
"Phone"
|
"Tablet"
|
"Console"
# PlayableDevices
object
# PlayerBadges
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
number
|
||
name |
string
|
||
description |
string
|
<optional> |
|
displayName |
string
|
||
displayDescription |
string
|
<optional> |
|
enabled |
boolean
|
||
iconImageId |
number
|
||
displayIconImageId |
number
|
||
awarder |
BadgeAwarder
|
||
statistics |
BadgeStatistics
|
||
created |
Date
|
||
updated |
Date
|
object
# PlayerInfo
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
username |
string
|
||
displayName |
string
|
||
blurb |
string
|
||
joinDate |
Date
|
||
age |
number
|
<optional> |
|
friendCount |
number
|
<optional> |
|
followerCount |
number
|
<optional> |
|
followingCount |
number
|
<optional> |
|
oldNames |
Array.<string>
|
<optional> |
|
isBanned |
boolean
|
object
# PlayerThumbnailData
Properties:
Name | Type | Description |
---|---|---|
targetId |
number
|
|
state |
string
|
|
imageUrl |
string
|
object
# PrivateMessage
Properties:
Name | Type | Description |
---|---|---|
id |
number
|
|
sender |
UserEntry
|
|
recipient |
UserEntry
|
|
subject |
string
|
|
body |
string
|
|
created |
Date
|
|
updated |
Date
|
|
isRead |
boolean
|
|
isSystemMessage |
boolean
|
|
isReportAbuseDisplayed |
boolean
|
|
parent |
PrivateMessageParent
|
object
# PrivateMessagesPage
Properties:
Name | Type | Description |
---|---|---|
collection |
Array.<PrivateMessage>
|
|
totalPages |
number
|
|
totalCollectionSize |
number
|
|
pageNumber |
number
|
object
# ProductInfo
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
TargetId |
number
|
||
ProductType |
string
|
<optional> |
|
AssetId |
number
|
||
ProductId |
number
|
||
Name |
string
|
||
Description |
string
|
||
AssetTypeId |
number
|
||
Creator |
ProductInfoCreator
|
||
IconImageAssetId |
number
|
||
Created |
Date
|
||
Updated |
Date
|
||
PriceInRobux |
number
|
<optional> |
|
PriceInTickets |
number
|
<optional> |
|
Sales |
number
|
||
IsNew |
boolean
|
||
IsForSale |
boolean
|
||
IsPublicDomain |
boolean
|
||
IsLimited |
boolean
|
||
IsLimitedUnique |
boolean
|
||
Remaining |
number
|
<optional> |
|
MinimumMembershipLevel |
number
|
||
ContentRatingTypeId |
number
|
||
SaleAvailabilityLocations |
Array
|
<optional> |
|
SaleLocation |
string
|
<optional> |
|
CollectibleItemId |
number
|
<optional> |
object
# ProductInfoCreator
Properties:
Name | Type | Description |
---|---|---|
Id |
number
|
|
Name |
string
|
|
HasVerifiedBadge |
boolean
|
object
# PromotionChannelsResponse
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
facebook |
string
|
<optional> |
|
twitter |
string
|
<optional> |
|
youtube |
string
|
<optional> |
|
twitch |
string
|
<optional> |
|
guilded |
string
|
<optional> |
"All"
|
"Clothing"
|
"BodyParts"
|
"AvatarAnimations"
|
"Accessories"
|
"Outfits"
|
"Gear"
# RecentItemListType
object
# RejectedParticipant
Properties:
Name | Type | Description |
---|---|---|
rejectedReason |
string
|
|
type |
string
|
|
targetId |
number
|
|
name |
string
|
|
displayName |
string
|
object
# ResaleDataResponse
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
assetStock |
number
|
<optional> |
|
sales |
number
|
<optional> |
|
numberRemaining |
number
|
<optional> |
|
recentAveragePrice |
number
|
<optional> |
|
originalPrice |
number
|
<optional> |
|
priceDataPoints |
Array
|
<optional> |
|
volumeDataPoints |
Array
|
<optional> |
object
# ResellerAgent
Properties:
Name | Type | Description |
---|---|---|
id |
number
|
|
type |
"User"
|
"Group"
|
|
name |
string
|
object
# ResellerData
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
userAssetId |
number
|
||
seller |
ResellerAgent
|
||
price |
number
|
||
serialNumber |
number
|
<optional> |
object
# RevenueSummaryResponse
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
recurringRobuxStipend |
number
|
<optional> |
|
itemSaleRobux |
number
|
<optional> |
|
purchasedRobux |
number
|
<optional> |
|
tradeSystemRobux |
number
|
<optional> |
|
pendingRobux |
number
|
<optional> |
|
groupPayoutRobux |
number
|
<optional> |
|
individualToGroupRobux |
number
|
<optional> |
|
premiumPayouts |
number
|
<optional> |
|
groupPremiumPayouts |
number
|
<optional> |
|
adjustmentRobux |
number
|
<optional> |
object
# Role
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string
|
||
memberCount |
number
|
<optional> |
|
rank |
number
|
||
id |
number
|
object
# RolePermissions
Properties:
Name | Type | Description |
---|---|---|
groupId |
number
|
|
role |
RoleWithDescription
|
|
permissions |
RolePermissionsBody
|
object
# RolePermissionsBody
Properties:
Name | Type | Description |
---|---|---|
groupPostsPermissions |
GroupPostsPermissions
|
|
groupMembershipPermissions |
GroupMembershipPermissions
|
|
groupManagementPermissions |
GroupManagementPermissions
|
|
groupEconomyPermissions |
GroupEconomyPermissions
|
object
# RoleWithDescription
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string
|
||
memberCount |
number
|
<optional> |
|
rank |
number
|
||
id |
number
|
||
description |
string
|
object
# SendChatResponse
Properties:
Name | Type | Description |
---|---|---|
content |
string
|
|
filteredForReceivers |
boolean
|
|
messageId |
string
|
|
sent |
string
|
|
messageType |
string
|
|
resultType |
string
|
|
statusMessage |
string
|
object
# SocialLinkResponse
Properties:
Name | Type | Description |
---|---|---|
id |
number
|
|
type |
'Facebook'
|
'Twitter'
|
'YouTube'
|
'Twitch'
|
'GooglePlus'
|
'Discord'
|
'RobloxGroup'
|
'Amazon'
|
|
url |
string
|
|
title |
string
|
object
# StartGroupConversationResponse
Properties:
Name | Type | Description |
---|---|---|
conversation |
ChatConversation
|
|
rejectedParticipants |
Array.<RejectedParticipant>
|
|
resultType |
string
|
|
statusMessage |
string
|
object
# ThumbnailData
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
requestId |
string
|
<optional> |
|
errorCode |
number
|
||
errorMessage |
string
|
||
targetId |
number
|
||
state |
"Completed"
|
"Pending"
|
"Blocked"
|
||
imageUrl |
string
|
<optional> |
object
# ThumbnailRequest
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
requestId |
string
|
<optional> |
|
targetId |
number
|
<optional> |
|
token |
string
|
<optional> |
|
alias |
string
|
<optional> |
|
type |
'Avatar'
|
'AvatarHeadShot'
|
'GameIcon'
|
'BadgeIcon'
|
'GameThumbnail'
|
'GamePass'
|
'Asset'
|
'BundleThumbnail'
|
'Outfit'
|
'GroupIcon'
|
'DeveloperProduct'
|
'AutoGeneratedAsset'
|
'AvatarBust'
|
'PlaceIcon'
|
'AutoGeneratedGameIcon'
|
'ForceAutoGeneratedGameIcon'
|
||
size |
string
|
||
format |
'png'
|
'jpeg'
|
<optional> |
|
isCircular |
boolean
|
<optional> |
object
# TradeAsset
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
number
|
||
user |
TradeUser
|
||
created |
Date
|
||
expiration |
Date
|
<optional> |
|
isActive |
boolean
|
||
status |
string
|
object
# TradeInfo
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
offers |
Array.<DetailedTradeOffer>
|
||
id |
number
|
||
user |
TradeUser
|
||
created |
Date
|
||
expiration |
Date
|
<optional> |
|
isActive |
boolean
|
||
status |
string
|
object
# TradeUser
Properties:
Name | Type | Description |
---|---|---|
userId |
number
|
|
username |
string
|
|
displayName |
string
|
object
# TransactionItem
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
number
|
||
transactionType |
string
|
<optional> |
|
created |
Date
|
||
isPending |
boolean
|
||
agent |
TransactionAgent
|
||
details |
TransactionDetails
|
<optional> |
|
currency |
TransactionCurrency
|
object
# UAIDResponse
Properties:
Name | Type | Description |
---|---|---|
uaids |
Array.<number>
|
|
failedIds |
Array.<number>
|
object
# UniverseAsset
Properties:
Name | Type | Description |
---|---|---|
assetID |
number
|
|
assetTypeID |
number
|
|
isPlayerChoice |
boolean
|
object
# UniverseCreator
Properties:
Name | Type | Description |
---|---|---|
id |
number
|
|
name |
string
|
|
type |
string
|
|
isRNVAccount |
boolean
|
object
# UniverseInformation
Properties:
Name | Type | Description |
---|---|---|
id |
number
|
|
rootPlaceId |
number
|
|
name |
string
|
|
description |
string
|
|
creator |
UniverseCreator
|
|
price |
number
|
|
allowedGearGenres |
Array.<string>
|
|
allowedGearCategories |
Array.<string>
|
|
isGenreEnforced |
boolean
|
|
copyingAllowed |
boolean
|
|
playing |
number
|
|
visits |
number
|
|
maxPlayers |
number
|
|
created |
Date
|
|
updated |
Date
|
|
studioAccessToApisAllowed |
boolean
|
|
createVipServersAllowed |
boolean
|
|
universeAvatarType |
"MorphToR6"
|
"PlayerChoice"
|
"MorphToR15"
|
|
genre |
"All"
|
"Tutorial"
|
"Scary"
|
"TownAndCity"
|
"War"
|
"Funny"
|
"Fantasy"
|
"Adventure"
|
"SciFi"
|
"Pirate"
|
"FPS"
|
"RPG"
|
"Sports"
|
"Ninja"
|
"WildWest"
|
|
isAllGenre |
boolean
|
|
isFavoritedByUser |
boolean
|
|
favoritedCount |
number
|
object
# UniversePermissions
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
IsThirdPartyTeleportAllowed |
boolean
|
<optional> |
|
IsThirdPartyAssetAllowed |
boolean
|
<optional> |
|
IsThirdPartyPurchaseAllowed |
boolean
|
<optional> |
object
# UniverseSettings
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
allowPrivateServers |
boolean
|
<optional> |
|
privateServerPrice |
number
|
<optional> |
|
name |
string
|
<optional> |
|
description |
string
|
<optional> |
|
universeAvatarType |
"MorphToR6"
|
"MorphToR15"
|
"PlayerChoice"
|
<optional> |
|
universeAnimationType |
"Standard"
|
"PlayerChoice"
|
<optional> |
|
universeCollisionType |
"InnerBox"
|
"OuterBox"
|
<optional> |
|
universeJointPositioningType |
"Standard"
|
"ArtistIntent"
|
<optional> |
|
isArchived |
boolean
|
<optional> |
|
isFriendsOnly |
boolean
|
<optional> |
|
genre |
"All"
|
"Tutorial"
|
"Scary"
|
"TownAndCity"
|
"War"
|
"Funny"
|
"Fantasy"
|
"Adventure"
|
"SciFi"
|
"Pirate"
|
"FPS"
|
"RPG"
|
"Sports"
|
"Ninja"
|
"WildWest"
|
<optional> |
|
playableDevices |
Array.<PlayableDevices>
|
<optional> |
Computer, Phone, Tablet, Console |
universeAvatarAssetOverrides |
Array.<UniverseAsset>
|
<optional> |
|
isForSale |
boolean
|
<optional> |
|
price |
number
|
<optional> |
|
universeAvatarMinScales |
AvatarScale
|
<optional> |
|
universeAvatarMaxScales |
AvatarScale
|
<optional> |
|
studioAccessToApisAllowed |
boolean
|
<optional> |
|
permissions |
UniversePermissions
|
<optional> |
|
optInRegions |
Array.<Regions>
|
<optional> |
Unknown, China |
object
# UpdateUniverseResponse
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
allowPrivateServers |
boolean
|
<optional> |
|
privateServerPrice |
number
|
<optional> |
|
id |
number
|
||
name |
string
|
<optional> |
|
description |
string
|
<optional> |
|
universeAvatarType |
"MorphToR6"
|
"MorphToR15"
|
"PlayerChoice"
|
<optional> |
|
universeAnimationType |
"Standard"
|
"PlayerChoice"
|
<optional> |
|
universeCollisionType |
"InnerBox"
|
"OuterBox"
|
<optional> |
|
universeJointPositioningType |
"Standard"
|
"ArtistIntent"
|
<optional> |
|
isArchived |
boolean
|
<optional> |
|
isFriendsOnly |
boolean
|
<optional> |
|
genre |
"All"
|
"Tutorial"
|
"Scary"
|
"TownAndCity"
|
"War"
|
"Funny"
|
"Fantasy"
|
"Adventure"
|
"SciFi"
|
"Pirate"
|
"FPS"
|
"RPG"
|
"Sports"
|
"Ninja"
|
"WildWest"
|
<optional> |
|
playableDevices |
Array.<PlayableDevices>
|
<optional> |
Computer, Phone, Tablet, Console |
universeAvatarAssetOverrides |
Array.<UniverseAsset>
|
<optional> |
|
isForSale |
boolean
|
<optional> |
|
price |
number
|
<optional> |
|
universeAvatarMinScales |
AvatarScale
|
<optional> |
|
universeAvatarMaxScales |
AvatarScale
|
<optional> |
|
studioAccessToApisAllowed |
boolean
|
<optional> |
|
permissions |
UniversePermissions
|
<optional> |
|
optInRegions |
Array.<Regions>
|
<optional> |
Unknown, China |
object
# UploadModelItemOptions
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string
|
||
description |
string
|
<optional> |
|
copyLocked |
boolean
|
<optional> |
|
allowComments |
boolean
|
<optional> |
|
groupId |
number
|
<optional> |
object
# UserPresence
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
userPresenceType |
UserPresenceType
|
<optional> |
|
lastLocation |
string
|
<optional> |
|
placeId |
number
|
<optional> |
|
rootPlaceId |
number
|
<optional> |
|
gameId |
string
|
<optional> |
|
universeId |
number
|
<optional> |
|
userId |
number
|
<optional> |
|
lastOnline |
string
|
<optional> |
object
# WallPost
Properties:
Name | Type | Description |
---|---|---|
id |
number
|
|
poster |
GroupUser
|
|
body |
string
|
|
created |
Date
|
|
updated |
Date
|
object
# WallPostPage
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
previousPageCursor |
string
|
<optional> |
|
nextPageCursor |
string
|
<optional> |
|
data |
Array.<WallPost>
|
# getLatest(latest, event)
Parameters:
Name | Type | Description |
---|---|---|
latest |
number
|
A value representing the latest version. |
event |
EventEmitter
|
The event emitter to emit to. |