Noblox.js, How to message?

I have been trying to message with noblox.js, but Its not working. If someone can help, thanks.

i believe the noblox library already have a documentation :thinking:

1 Like

I know, but after looking at the for 5 hours, and it not working. I needed to ask some one.


Is this what you’re looking for?

https://noblox.js.org/global.html#sendChatMessage

1 Like

No, I mean A message tho the roblox message system, not chat.

This?


https://noblox.js.org/global.html#message

1 Like

Yes, But how do I do it, heres my code:
noblox.message(Message.recipient.id, "This Is A Test", "Test")
But it dose not work.

Edit, I know the Message.recipient.id works.

Troubleshooting:

  • what is Message?
  • Have you logged in with a cookie?
1 Like

I have loged it with the cookie.

What is the message variable?

1 Like

But for more info:
It gets all the messages:
let messages = await noblox.getMessages(1, 5, "Inbox")
and then makes the “Message”:
var Message = messages['collection'][0]

Alright, the problem might be this
image

1 Like

0_0, hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm. I think thats it, one more thing, dose the Chat one work??

I have no idea, it doesn’t have a note though so I presume it does.

1 Like

Let me try it. Give me a sec. I am going to try it.

Also How do you get the “conversationId”?
Becuase I am trying to test it.

No idea, but I think it might be the order they’re listed in
image

or UserId

1 Like

No, The conversationId I had for the messageing was like 8 Letters long (Nub’s).

I’m not sure then. Experiment around with different numbers?

1 Like

Got it,
https://noblox.js.org/global.html#onNewMessage
I think this is it!

1 Like