Noblox.message() doesn't work?

Hey there!

I’ve started learning discord.py and discord.js a few days ago, and I’m currently making a verification system for my discord server (roblox-discord verification), for this, I’m sending a verification code in private messages to the user who is trying to verify.

I log in with the cookie, there’s no errors, but the message doesn’t get sent, the relevant part of the script is below;

noblox.setCookie(Cookie, true) -- succeeds to log in
robloxuserid = noblox.getIdFromUsername(split) -- gets the username correctly
messagebody = "Hello there! \n Someone named " + member.username + " is attempting to verify with your account, if this is not you, please ignore this message.\nIf this is you, run the command !!verify "+split+" "+securitycode

noblox.message(robloxuserid, "ChaoticBot Verification", messagebody)
console.log("sent message")

The console does log “sent message” but the actual message is never sent,


If you know what I’m doing wrong, please let me know, thanks a lot!

I don’t think you can send messages.

Also, why does this have the ‘building’ and ‘studio’ tag? This issue is not related to either of those.

I’m actually running it locally, that isn’t a web server nor a proxy, right?

Does the recipient have messages enabled?
Also, are you sure messages are the best choice for this?
The user would have to be told to enable messages for everyone before being able to verify.

Wouldn’t it be better to put a random string of words in their bio in order to verify?
Also, could you try changing “messagebody” in “noblox.message” to “Test”? Maybe it’ll send a message then.

The recipient is another account of mine, both accounts have messages set to ‘everyone’, and, thanks for the idea, that could work as well

Also with “test” it doesn’t send

Then I would just go with the security code inside of bio approach. Seems more plausible and easy to pull off to me.

1 Like

You have to have a Verified email on the bots account to send Private Messages.