Can i use policyservice to premote my discord server?

Hi everyone,

I’m working on a game and was considering using PolicyService to check if a user is 13+ and, only then, show them a Discord invite link (e.g., in a GUI popup).

Before I do anything, I want to make sure this is not against Roblox’s Community Standards or TOS.

1 Like

You should be able to; but don’t check if they are 13+, see if they are allowed to see Discord links.

local function canPlayerSeeDiscordLinks(player: Player): boolean
    local s, info = pcall(PolicyService.GetPolicyInfoForPlayerAsync, PolicyService, Player)
    if (not s) then return false end --default to false as a safeguard when it fails

    return table.find(info.AllowedExternalLinkReferences, "Discord") ~= nil
end

It shouldn’t be against community standards or ToS, especially considering they provide a method to check, but do not quote me on that.

PolicyService.GetPolicyInfoForPlayerAsync | Documentation - Roblox Creator Hub

1 Like

You cannot do this as this would violate ToS, it would be considered “off-platform”. Use the built in Social Links instead. Roblox is strange like that.

15 Likes

but alot of popular games use policy service such as

Roblox doesn’t even abide by their own ToS these days, I don’t think they would care about this considering I see other games that do this.

@Alfiepro98234 You should be fine :smiley:

after some digging (asking the studio assistant to search the ToS and Community Standards, it’s really good at that) I found this being the most relevant thing:

my guess is Roblox does explicitely allow you to considering the Social Links section and this PolicyService return result field.

maybe if i put on the gui

(Found using policyservice) or something

I’m just providing them the best possible option, if someone decides to report them they most likely will get moderated.

14 Likes

Well no, as long as you use PolicyService correctly, that is, checking the field AllowedExternalLinkReferences. I shouldn’t think that saying you got it with PolicyService will help… but Roblox moderation is incredibly inconsistent, so idk.

You should probably be all right considering that Roblox already has the Social Links section of the site, and a field containing the allowed external links users can see from the PolicyService result.

That’s true about the reporting, unfortunately that’s how it works :confused: