HttpService. I don’t know what Rover is, but I assume it’s a third-party website that allows you to connect Discord guilds with Roblox.
Read documentation on Rover, I am sure there is everything you need.
Rover is a bot service for roblox, its a bot you add to your discord server to verify peoples accounts and if they are in a certain group. It also has a option to take their API and connect discord servers to roblox although i don’t know how to do that or script that,
So after you register and add the bot to your server,
Using HttpService:Get(ENDPOINT, HEADERS), you can get if a user is on the server. The endpoint should be https://registry.rover.link/api/guilds/YOUR GUILD ID/roblox-to-discord/ROBLOX ID TO CHECK, and headers can be empty.
The code should look something like this:
local HttpService = game:GetService("HttpService")
USER_ID = 1
GUILD_ID = 1
ENDPOINT = `https://registry.rover.link/api/guilds/{GUILD_ID}/roblox-to-discord/{USER_ID}`
local response = HttpService:Get(ENDPOINT)
local data = HttpService:JSONDecode(response) -- we must get json from the response
print(data)
data is a dictionary and will contain key discordUsers. By doing print(data["discordUsers"]), you will get every user on the server that has been verified with account USER_ID.
And, to solve your task, you can simply check the length of data["discordUsers"]. If the length is 0, then the account is not verified on the server.
NOTE: YOU MUST ENABLE HTTP SERVICES IN YOUR GAME’S SETTINGS