What is the use of the `IsReady` variable returned by `GetUserThumbnailAsync`

GetUserThumbnailAsync returns the player’s thumb and IsReady variable, which is reported as a bool describing if the image is ready to be used or not.

I ask: in what situations is the image not ready to be used?

1 Like

I’m pretty sure that when the image URL is returned from the thumbnail API endpoint, the server does not do any checks to ensure it has been loaded / is usable yet. When you apply the image to some decal or image object, it may take a few seconds until the engine loads it.

If you wanted to ensure that it was loaded, I suppose you could check if IsReady == false and if so, perform ContentProvider:PreloadAsync({image_id}); to asynchronously preload the image before your script uses it.

2 Likes

For example, if the image havent loaded you can add a temporary placeholder. you could just use player’s username instead of thier avatar until the image loads.

2 Likes