Roblox API Reference

BadgeService On DevHub

Summary

This class is not creatable. An object of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.

Tags: [NotCreatable, Service]

Inherits (1)

Member index (8)

Type Member History
bool AwardBadge (int64 userId, int64 badgeId) 319
Dictionary GetBadgeInfoAsync (int64 badgeId) 339
bool IsDisabled (int64 badgeId) 319 358
bool IsLegal (int64 badgeId) 319 358
bool UserHasBadge (int64 userId, int64 badgeId) 319 345
bool UserHasBadgeAsync (int64 userId, int64 badgeId) 336
BadgeAwarded (string message, int64 userId, int64 badgeId) 91 90 91 168 319
OnBadgeAwarded (int64 userId, int64 creatorId, int64 badgeId) 409
57 members inherited from Instance

Removed member index (6)

Type Member History
void SetAwardBadgeUrl (string url) 310
void SetHasBadgeCooldown (int seconds) 310
void SetHasBadgeUrl (string url) 310
void SetIsBadgeDisabledUrl (string url) 310
void SetIsBadgeLegalUrl (string url) 310
void SetPlaceId (int placeId) 310

History

Members

AwardBadge On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
userId int64 none
badgeId int64 none

History

Tags: [Yields]

BadgeAwarded On DevHub

Name Type Default
message string none
userId int64 none
badgeId int64 none

History

GetBadgeInfoAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
badgeId int64 none

History

Tags: [Yields]

IsDisabled On DevHub

This function yields. It will block the calling thread until completion.
This item is deprecated. It exists for backwards-compatibility only, and should not be used for new work.
Name Type Default
badgeId int64 none

History

Tags: [Yields, Deprecated]

IsLegal On DevHub

This function yields. It will block the calling thread until completion.
This item is deprecated. It exists for backwards-compatibility only, and should not be used for new work.
Name Type Default
badgeId int64 none

History

Tags: [Yields, Deprecated]

OnBadgeAwarded On DevHub

Name Type Default
userId int64 none
creatorId int64 none
badgeId int64 none

History

UserHasBadge On DevHub

This function yields. It will block the calling thread until completion.
This item is deprecated. It exists for backwards-compatibility only, and should not be used for new work.
Name Type Default
userId int64 none
badgeId int64 none

History

Tags: [Yields, Deprecated]

UserHasBadgeAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
userId int64 none
badgeId int64 none

History

Tags: [Yields]

Removed members

SetAwardBadgeUrl

Name Type Default
url string none

History

SetHasBadgeCooldown

Name Type Default
seconds int none

History

SetHasBadgeUrl

Name Type Default
url string none

History

SetIsBadgeDisabledUrl

Name Type Default
url string none

History

SetIsBadgeLegalUrl

Name Type Default
url string none

History

SetPlaceId

Name Type Default
placeId int none

History