Closed Tapao-NonSen closed 5 years ago
The code make for work w/ DBM
roblox.groupPayout(group, user, robuxamount)
This is not the appropriate place to post issues about your code/improper usage of the library. Use the Roblox API Discord Server, specifically the channel for this library to ask such questions. https://discord.gg/EDXNdAT
You are getting Bad Request because you are sending an array for the robux parameter, the API expects a positive integer.
I dont know why what i do wrok it still give me bad request here this is my code
const roblox = require('noblox.js') const cookie = tempVars('cookie') const group = tempVars("groupid") const user = tempVars("userid") const robux = tempVars("rbx")
roblox.cookieLogin(cookie) .then(function() { console.log('Logged on.') roblox.groupPayout(group, user, [robux]) }) .catch(function(error) { console.log(error) });
dont care about [robux] it very impotent the group api send me a info w/ []
so why it still give me bad request