What is InsertService:GetUserCategories()

I’m trying to revive the old version of the late WTRB, but theres a function that is so old it’s impossible to find any documentation on it except for its existence and depreciation.

game.InsertService:GetUserCategories(userid)

Attempting to call this throws a LuaWebService error. Am trying to find a replacement​/​workaround.

edit 202308202133: specified userid as arg

3 Likes

The function “game.InsertService:GetUserCategories()” is used to retrieve all categories created by a specific user.


What do these specific categories include?

In particular, these are the most common ones: Models, Decals, Audios, and others.


What does this method do?

This method provides information about all categories created by the user. This includes:

  • DisplayName: The name of the category.
  • Name: The identifier of the category.
  • Description: The description of the category.
  • Icon: The category’s icon.
  • UserId: The identifier of the user who created the category.
  • Category Type: The type of the category.

And so on.


Usage example:

local Categories = game.InsertService:GetUserCategories(UserId) 

for _, Category in pairs(Categories) do 
   print(Category.DisplayName, Category.Name, Category.Description, Category.Icon, Category.UserId, Category.Type) 
end
1 Like

Where did you find this information?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.