sentanos / roblox-js

!!!THIS PROJECT IS NO LONGER MAINTAINED!!! Execute ROBLOX website actions in node.js
MIT License
45 stars 45 forks source link

groupPayout #86

Closed grangus closed 6 years ago

grangus commented 6 years ago

I'm getting a "Not found" error in the console when I try to use the groupPayout function. I'm not sure if I'm doing something wrong. My code is below, if anyone can give me a hand it would be very appreciated.

var options = { username: 'USER_NAME', password: 'PASS' } rbx.login(options) .then(function () { rbx.groupPayout(["3727270", "393654771"], 100, (res) => { console.log(res); }); }) .catch(function (err) { console.error(err.stack); });

I'm still new to node.js so have some pity on me. :)

suufi commented 6 years ago

Try not a using string but rather an integer.

On Fri, Jan 26, 2018 at 10:02 GringoGuy notifications@github.com wrote:

I'm getting a "Not found" error in the console when I try to use the groupPayout function. I'm not sure if I'm doing something wrong. My code is below, if anyone can give me a hand it would be very appreciated.

var options = { username: 'USER_NAME', password: 'PASS' } rbx.login(options) .then(function () { rbx.groupPayout(["3727270", "393654771"], 100, (res) => { console.log(res); }); }) .catch(function (err) { console.error(err.stack); });

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sentanos/roblox-js/issues/86, or mute the thread https://github.com/notifications/unsubscribe-auth/AMKxJPTSNdrQRLR4Oi1LZlU0hp-EV0D7ks5tOej1gaJpZM4Ruaqk .

-- "I take the world by storm." ~Lukas Graham

grangus commented 6 years ago

I tried using both. I get the same error.

sentanos commented 6 years ago

In your code you don't put the group you are paying out from. Also, the response is in the .then for groupPayout, it is not a parameter.

grangus commented 6 years ago

Thanks, I found out what I was doing wrong.