Hello,
I’m currently working with the following methods in AvatarEditorService
:
AvatarEditorService:GetItemDetails(itemId, itemType)
AvatarEditorService:GetBatchItemDetails(table, itemType)
The issue I’m facing is that both of these methods require specifying the itemType
(either Enum.AvatarItemType.Bundle
or Enum.AvatarItemType.Asset
). However, I don’t always know the item type in advance.
While I can use GetItemDetails
to determine the item type, this adds an extra API request, which isn’t efficient. If I use SearchCatalog()
and don’t know what assets will be returned, I’m forced to call the method twice—once for Asset
and once for Bundle
—to ensure I get all relevant data.
This becomes a problem when I’m hitting API rate limits. I understand the limit is 100 requests per second for AvatarEditorService
, but after scrolling through a few pages of results, the items stop loading, and I have to wait before I can make additional calls.
My questions are:
- Is it possible to call
GetBatchItemDetails
orGetItemDetails
without specifying theitemType
ahead of time? - Currently, I have to call the API twice to figure out whether an item is an asset or a bundle. It would be much more efficient if I could handle both types at once.
- It would be really helpful if there was a way to retrieve both asset and bundle details in a single batch request.
Any advice or insights on how to approach this would be greatly appreciated. Thanks!