MarketplaceUtils
Provides utility methods for MarketplaceService
Types
CreatorProductInfo
interface CreatorProductInfo {CreatorType: string--
Either User or Group
CreatorTargetId: number--
The ID of the creator user or group
Name: string--
The name/username of the creator
Id: number--
(Use CreatorTargetId instead)
}Product info about the creator. See MarketplaceService.GetProductInfo.
AssetProductInfo
interface AssetProductInfo {AssetId: number--
If InfoType was Asset, this is the ID of the given asset.
AssetTypeId: number--
The type of asset (e.g. place, model, shirt)*
IsForSale: boolean--
Describes whether the asset is purchasable
IsLimited: boolean--
Describes whether the asset is a "limited item" that is no longer (if ever) sold
IsLimitedUnique: boolean--
Describes whether the asset is a "limited unique" ("Limited U") item
IsNew: boolean--
Describes whether the asset is marked as "new" in the catalog
Remaining: number--
The remaining number of items a limited unique item may be sold
Sales: number--
The number of items the asset has been sold
Name: string--
The name shown on the asset's page
Description: string--
The description as shown on the asset's page; can be nil if blank
PriceInRobux: number--
The cost of purchasing the asset using Robux
Created: string--
Timestamp of when the asset was created, e.g. 2018-08-01T17:55:11.98Z
Updated: string--
Timestamp of when the asset was last updated by its creator, e.g. 2018-08-01T17:55:11.98Z
ContentRatingTypeId: number--
Indicates whether the item is marked as 13+ in catalog
MinimumMembershipLevel: number--
The minimum subscription level necessary to purchase the item
IsPublicDomain: boolean--
Describes whether the asset can be taken for free
}Product info result for assets.
GamepassOrDeveloperProductInfo
interface GamepassOrDeveloperProductInfo {ProductId: number--
If the InfoType was Product, this is the product ID
IconImageAssetId: number--
This is the asset ID of the product/pass icon, or 0 if there isn't one
Name: string--
The name shown on the asset's page
Description: string--
The description as shown on the asset's page; can be nil if blank
PriceInRobux: number--
The cost of purchasing the asset using Robux
Created: string--
Timestamp of when the asset was created, e.g. 2018-08-01T17:55:11.98Z
Updated: string--
Timestamp of when the asset was last updated by its creator, e.g. 2018-08-01T17:55:11.98Z
ContentRatingTypeId: number--
Indicates whether the item is marked as 13+ in catalog
MinimumMembershipLevel: number--
The minimum subscription level necessary to purchase the item
IsPublicDomain: boolean--
Describes whether the asset can be taken for free
}Product info result for gamepasses.
Functions
promiseProductInfo
MarketplaceUtils.promiseProductInfo(assetId: number,infoType: InfoType) → Promise<AssetProductInfo | GamepassOrDeveloperProductInfo>Wraps MarketplaceService.GetProductInfo and retrieves information about
promiseUserOwnsGamePass
Retrieves whether a player owns a gamepass.
promisePlayerOwnsAsset
Retrieves whether a player owns an asset, such as a hat or some other item.