I need help... bot discord

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

my test code:

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))

my roles:
image

what it printed:
image

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.

i revoked it please tell me if u got a solution

I told you what to do.

it still prints nothing?? how come.
the authorization key is right and i have set the permissions of the bot already to highest in discord and group

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)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.