I am trying to check if player is Nitro Booster of discord server.
It throws error “Can’t parse JSON” when in game, but in studio it works well.
function CheckNitroBooster(Player)
local http = game:GetService("HttpService")
local api = "https://discord.com/api/guilds/{valid guild id}/members/search?query="
local data = http:RequestAsync({Url = api..tostring(Player.Name), Headers = {["Authorization"] = "Bot {valid token}"}})
local boostSince = http:JSONDecode(data.Body)[1]["premium_since"]
return boostSince
end