This is a yielding function. When called, it will pause the Lua thread that called the function until a result is ready to be returned, without interrupting other scripts.
GetBadgeInfoAsync will fetch information about a badge given its ID. It takes a brief moment to load the information from the Roblox website; repeated calls will cache for a short duration. It returns a dictionary with the following fields:
||string||The name of the badge.|
||string||The description of the badge.|
||int64||The asset ID of the image for this badge.|
||bool||Indicates whether this badge is available to be awarded.|
The badgeId of the badge whose information shall be fetched.
A dictionary of information about the specified badge.
This code sample prints information about a badge fetched using