Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

handleJoinRequest not working #103

Open
Ankatic opened this issue Jun 8, 2018 · 9 comments
Open

handleJoinRequest not working #103

Ankatic opened this issue Jun 8, 2018 · 9 comments

Comments

@Ankatic
Copy link

Ankatic commented Jun 8, 2018

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
Copy link

ghost commented Jun 8, 2018

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

@Ankatic
Copy link
Author

Ankatic commented Jun 8, 2018

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

@ghost
Copy link

ghost commented Jun 8, 2018

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

@Ankatic
Copy link
Author

Ankatic commented Jun 8, 2018

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

@suufi
Copy link
Contributor

suufi commented Jun 8, 2018

Might be related to this.

@ghost
Copy link

ghost commented Jun 9, 2018

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
Copy link
Contributor

suufi commented Jun 9, 2018 via email

@EraGamer
Copy link

EraGamer commented Aug 27, 2018

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
Copy link

ipadpuppydogdude1 commented Dec 4, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants