PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

GetBadgeInfoAsync

This function fteches information about a articles/Badges Special Game Awards|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:

Key Type Description
Name string The name of the badge.
Description string The description of the badge.
IconImageId int64 The asset ID of the image for the badge.
IsEnabled bool Indicates whether the badge is available to be awarded.

See also

  • BadgeService/AwardBadge|BadgeService:AwardBadge()
  • BadgeService/UserHasBadgeAsync|BadgeService:UserHasBadgeAsync()

Parameters

Name Type Default Description

The badge ID of the badge whose information should be fetched.

Returns

Return Type Summary

A dictionary of information about the specified badge.


Code Samples


Getting Badge Info

This sample prints badge information fetched via BadgeService/GetBadgeInfoAsync|BadgeService:GetBadgeInfoAsync().