Closed grangus closed 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
I tried using both. I get the same error.
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.
Thanks, I found out what I was doing wrong.
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. :)