Is showing a Discord invite using only "IsSubjectToChinaPolicies" as a check within TOS?

I’ve been working on a game and I’m wanting to have my Discord invite publicly available to those of an old enough age to have Discord. The issue is, all the rulings I’ve found referencing doing this refer to a deprecated API Check that now always returns an empty array.

Does anyone have experience with this and what I should ideally do?

Current Code:

local Players = game:GetService(“Players”)
local player = Players.LocalPlayer
local PolicyService = game:GetService(“PolicyService”)
local label = script.Parent:WaitForChild(“DiscordLabel”)

label.Visible = false
local success, policyInfo = pcall(function()
return PolicyService:GetPolicyInfoForPlayerAsync(player)
end)

if success and policyInfo then
local isRestricted = policyInfo.IsSubjectToChinaPolicies
label.Visible = not isRestricted
else
label.Visible = true
end

1 Like

No, no external links are allowed anymore! You must redirect users to look at the experience details and find it in socials links instead.

1 Like

Are you sure? I mean I have always done this but I thought using PolicyService still allows that.

Do you have a source for this you could link me?

You can tell people to view the social links on the game page but you cannot link it nor mention off-platform website names ingame

https://create.roblox.com/docs/reference/engine/classes/PolicyService#GetPolicyInfoForPlayerAsync

image

1 Like

Thank you, sorry for the inconvenience.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.