roblox-js icon indicating copy to clipboard operation
roblox-js copied to clipboard

handleJoinRequest not working

Open Ankatic opened this issue 6 years ago • 9 comments

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.

Ankatic avatar Jun 08 '18 20:06 Ankatic

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

ghost avatar Jun 08 '18 20:06 ghost

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

Ankatic avatar Jun 08 '18 20:06 Ankatic

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

ghost avatar Jun 08 '18 20:06 ghost

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

Ankatic avatar Jun 08 '18 21:06 Ankatic

Might be related to this.

suufi avatar Jun 08 '18 22:06 suufi

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.

ghost avatar Jun 09 '18 00:06 ghost

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

On 8 June 2018 at 20:23, OutlookG [email protected] 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 .

suufi avatar Jun 09 '18 01:06 suufi

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

EraGamer avatar Aug 27 '18 16:08 EraGamer

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.

ipadpuppydogdude1 avatar Dec 04 '18 18:12 ipadpuppydogdude1