Hey! you could use policy service to check if the player is allowed to see social links as not all players on the platform should / are allowed to see external platform links
local PolicyService = game:GetService("PolicyService")
local player = game.Players.LocalPlayer
pcall(function()
local accessToSee = PolicyService:GetPolicyInfoForPlayerAsync(player).AllowedExternalLinkReferences
if accessToSee then
-- player is ALLOWED to see discord link
end
end)