sentanos / roblox-js

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

handleJoinRequest not working #103

Open Ankatic opened 6 years ago

Ankatic commented 6 years ago

var options = { group: ID, username: username, accept: true }

rbx.handleJoinRequest(options) .then(function (err) { if(err) throw err; console.log('accepted') })

Using this code, of course given all the extra stuff such as logging in and putting the parameters under options, I continue to receive this error: Error: Could not load join requests, make sure you have permission to view them

Seeing as I am the owner of the group, I don’t see this being the issue.

Any help is appreciated. Thanks.

ghost commented 6 years ago

Make sure your bot has a role with the permission to add group requests!

Ankatic commented 6 years ago

This can’t be an issue. It owns the group.

ghost commented 6 years ago

Make sure you have manual accept on in the group settings!

Ankatic commented 6 years ago

I do, I even have a person who needs accepting.

suufi commented 6 years ago

Might be related to this.

ghost commented 6 years ago

one thing you could do is instead of a discord server, somehow send a event to a roblox game the get the roblox game version of roblox-js and use it that way.

suufi commented 6 years ago

Outlook, I don't think you know what you're talking about.

On 8 June 2018 at 20:23, OutlookG notifications@github.com wrote:

one thing you could do is instead of a discord server, somehow send a event to a roblox game the get the roblox game version of roblox-js and use it that way.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sentanos/roblox-js/issues/103#issuecomment-395924880, or mute the thread https://github.com/notifications/unsubscribe-auth/AMKxJGxLBH8U2lzKm8PBzNTZcPefDpBwks5t6xVkgaJpZM4Ug7Bt .

EraGamer commented 6 years ago

Odds are that you're not correctly logged in. handleJoinRequest seems to be working fine for me.

This is probably worth closing.

the only errors I've ever gotten with this is when I try to use multiple accounts via jars

ipadpuppydogdude1 commented 5 years ago

You are not handling the code correctly. You are not logging in first, then putting a then function.

rbx.login('username', 'password).then(() => {
rbx.handleJoinRequest(options)
.then(function (err) {
if(err) throw err;
console.log('accepted')
})
})

Try this and see if this works.