roblox-js
roblox-js copied to clipboard
handleJoinRequest not working
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.
Make sure your bot has a role with the permission to add group requests!
This can’t be an issue. It owns the group.
Make sure you have manual accept on in the group settings!
I do, I even have a person who needs accepting.
Might be related to this.
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.
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 .
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
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.