Basic Usage
This guide will walk you through the basic setup and usage of the discord-verify SDK.
Verify a Player
To check whether a player is currently in your Discord server, use
verify.verify().
Important
A verification result is only a Discord membership signal. It does not establish a player’s identity, age, or permission to use Discord. Before you add any player-facing verification flow, read Discord References on Roblox.
Note
After a player verifies, make sure to save it to their player data to not need to require an additional http request next time the player joins the game.
local isVerified = verify.verify(player)
if isVerified then
print(player.DisplayName .. " is currently in the Discord server!")
else
print(player.DisplayName .. " is NOT currently in the Discord server! :(")
endHandle Successful Verification (Optional)
The verify.verified signal fires when a player successfully verifies. You can use this signal for any post verification needs, like saving the verification state to the player’s data.
verify.verified:Connect(function(player: Player)
print(player.DisplayName .. " successfully verified!")
end)Analytics
For tracking your verification funnel, call openedMenuEvent when a player opens the verification menu.
-- Call this when the player opens the verification UI
verify.openedMenuEvent(player)