noblox / noblox.js

A Node.js API wrapper for Roblox.
https://noblox.js.org
MIT License
246 stars 139 forks source link

The group payout not work and still get bad request! #78

Closed Tapao-NonSen closed 5 years ago

Tapao-NonSen commented 5 years ago

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 image

Tapao-NonSen commented 5 years ago

The code make for work w/ DBM

policetonyR commented 5 years ago

roblox.groupPayout(group, user, robuxamount)

Hamzah-z commented 5 years ago

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.