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,
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.