From eefa77cf582ba7058632bf9a3ee94573f9fbb19b Mon Sep 17 00:00:00 2001 From: actuallyasmartname Date: Fri, 2 Jan 2026 17:50:07 -0500 Subject: [PATCH] replace references to AwardBadge with AwardBadgeAsync --- content/en-us/production/publishing/badges.md | 4 ++-- content/en-us/reference/engine/classes/BadgeService.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/en-us/production/publishing/badges.md b/content/en-us/production/publishing/badges.md index 758f6ff5f..70a5e4cc5 100644 --- a/content/en-us/production/publishing/badges.md +++ b/content/en-us/production/publishing/badges.md @@ -87,7 +87,7 @@ A badge's ID is its unique identifier. You'll need this ID when implementing wor ### Award badges -You can award badges to players throughout your experience by calling the `Class.BadgeService:AwardBadge()` method in a server-side `Class.Script`. `Class.BadgeService:GetBadgeInfoAsync()` returns properties of the badge, including `IsEnabled` which confirms whether or not the badge can be awarded to a player. You can enable or disable a badge from the **Configure Badge** form on the [Creator Dashboard](https://create.roblox.com/dashboard/creations). +You can award badges to players throughout your experience by calling the `Class.BadgeService:AwardBadgeAsync()` method in a server-side `Class.Script`. `Class.BadgeService:GetBadgeInfoAsync()` returns properties of the badge, including `IsEnabled` which confirms whether or not the badge can be awarded to a player. You can enable or disable a badge from the **Configure Badge** form on the [Creator Dashboard](https://create.roblox.com/dashboard/creations). The following is an example of a safe function for awarding badges to players. @@ -101,7 +101,7 @@ local function awardBadge(player, badgeId) -- Confirm that badge can be awarded if badgeInfo.IsEnabled then -- Award badge - local awarded, errorMessage = pcall(BadgeService.AwardBadge, BadgeService, player.UserId, badgeId) + local awarded, errorMessage = pcall(BadgeService.AwardBadgeAsync, BadgeService, player.UserId, badgeId) if not awarded then warn("Error while awarding badge:", errorMessage) end diff --git a/content/en-us/reference/engine/classes/BadgeService.yaml b/content/en-us/reference/engine/classes/BadgeService.yaml index d96a04fa7..8b01c6b30 100644 --- a/content/en-us/reference/engine/classes/BadgeService.yaml +++ b/content/en-us/reference/engine/classes/BadgeService.yaml @@ -190,7 +190,7 @@ methods: See also: - - `Class.BadgeService:AwardBadge()` + - `Class.BadgeService:AwardBadgeAsync()` - `Class.BadgeService:UserHasBadgeAsync()` code_samples: - getbadgeinfoasync @@ -355,7 +355,7 @@ methods: - `Class.BadgeService:CheckUserBadgesAsync()` - `Class.BadgeService:GetBadgeInfoAsync()` - - `Class.BadgeService:AwardBadge()` + - `Class.BadgeService:AwardBadgeAsync()` code_samples: - badges---checking-earned-badges parameters: