BadgeService

extends Instance

Class fields

FieldXML typeValue
NamestringBadgeService

Functions

6
SetAwardBadgeUrl
(url: string) → void
FieldXML typeValue
NamestringSetAwardBadgeUrl
Deprecatedbooltrue
Browsableboolfalse
SetHasBadgeCooldown
(seconds: int) → void
FieldXML typeValue
NamestringSetHasBadgeCooldown
Deprecatedbooltrue
Browsableboolfalse
SetHasBadgeUrl
(url: string) → void
FieldXML typeValue
NamestringSetHasBadgeUrl
Deprecatedbooltrue
Browsableboolfalse
SetIsBadgeDisabledUrl
(url: string) → void
FieldXML typeValue
NamestringSetIsBadgeDisabledUrl
Deprecatedbooltrue
Browsableboolfalse
SetIsBadgeLegalUrl
(url: string) → void
FieldXML typeValue
NamestringSetIsBadgeLegalUrl
Deprecatedbooltrue
Browsableboolfalse
SetPlaceId
(placeId: int) → void
FieldXML typeValue
NamestringSetPlaceId
Deprecatedbooltrue
Browsableboolfalse

Yield functions

8
AwardBadge
(userId: int, badgeId: int) → bool
FieldXML typeValue
NamestringAwardBadge
Deprecatedbooltrue
summarystringDeprecated. Use AwardBadgeAsync instead.
AwardBadgeAsync
FieldXML typeValue
NamestringAwardBadgeAsync
summarystringAwards a badge to a player who is currently connected to the experience.
CheckUserBadgesAsync
FieldXML typeValue
NamestringCheckUserBadgesAsync
summarystringReturns the badge IDs, from a batch of at most 10, that the user owns.
GetBadgeInfoAsync
FieldXML typeValue
NamestringGetBadgeInfoAsync
summarystringReturns the name, description, icon image ID, and enabled state for a badge.
IsDisabled
(badgeId: int) → bool
FieldXML typeValue
NamestringIsDisabled
Deprecatedbooltrue
IsLegal
(badgeId: int) → bool
FieldXML typeValue
NamestringIsLegal
Deprecatedbooltrue
UserHasBadge
(userId: int, badgeId: int) → bool
FieldXML typeValue
NamestringUserHasBadge
Deprecatedbooltrue
summarystringDeprecated. Use UserHasBadgeAsync instead.
UserHasBadgeAsync
FieldXML typeValue
NamestringUserHasBadgeAsync
summarystringReturns whether the user owns the badge.

Events

2
BadgeAwarded
(message: string, userId: int, badgeId: int) → void
FieldXML typeValue
NamestringBadgeAwarded
OnBadgeAwarded
FieldXML typeValue
NamestringOnBadgeAwarded