ro manager seems to not work in my end does anybody have a solution for this?
i followed romanager steps & verified my user and added api key to the stuff everything
every single requirements have been met but it does not seem to like work i also have the
role for the benefit but it just doesn’t work please help
local function isBooster(playerId)
local http = game:GetService('HttpService')
local response = http:RequestAsync({
Url = 'https://api.romanager.bot/v1/discord-roles/'..playerId,
Method = 'GET',
Headers = {
['Authorization'] = 'code enteered'
}
})
local discordRoles = http:JSONDecode(response)
for _, role in pairs(discordRoles) do
print(role.name)
if role.name == "Za one piece" then
return true
end
end
end
print(isBooster(game.Players.Tr3afthy.UserId))
please tell me you didn’t put your actual authorization code there
Tell me what this prints:
local function isBooster(playerId)
local http = game:GetService('HttpService')
local response = http:RequestAsync({
Url = 'https://api.romanager.bot/v1/discord-roles/'..playerId,
Method = 'GET',
Headers = {
['Authorization'] = 'please do not put your actual authorization key when you post it in public'
}
})
local discordRoles = http:JSONDecode(response)
print(discordRoles)
for _, role in pairs(discordRoles) do
if role.name == "Za one piece" then
return true
end
end
end
print(isBooster(game.Players.Tr3afthy.UserId))
If this prints nothing, then that means that your authorization key is wrong or you setup the bot permissions wrong.
never mind, turns out there was something wrong on the script. the script your provided is wrong btw.
to those who are looking to this post the wrong part i did was that these:
wrong: local discordRoles = http:JSONDecode(response)
correnct: local discordRoles = http:JSONDecode(response.Body)