Repository navigation
Classes
- Classes
- id (Number) - The message id
- sender (Class-PartialUser) - The one who sent the message
- recipient (Class-PartialUser) - The one who received the message
- subject (String) - The subject / title of the message
- body (String) - The body of the message
- created (Date) - The date when the message was sent
- updated (Date) - The date when the message was last updated
- isRead (Boolean) - Whether or not the authenticated user has read the message
- isSystemMessage (Boolean) - If it was an automated message **
Archives the message
Parameters
None
Returns
- Promise (Boolean)
Example
.archive().then( () => {
})Marks the message as either read or unread
Parameters
- markRead? (Boolean) - Whether or not the message should be marked as read
Returns
- Promise (Boolean)
Example
.markRead().then( () => {
})Moves the message from the archive to the inbox
Parameters
None
Returns
- Promise (Boolean)
Example
.moveToInbox().then( () => {
})Sends a reply back to the sender
Parameters
- subject (String)
- message (String)
Returns
- Promise (Boolean)
Example
.reply("No thx", "I'm not interested").then( () => {
})Accepts the friend request
Parameters
None
Returns
- Promise (Boolean)
Example
.acceptFriendRequest().then( () => {
})Blocks the user
Parameters
None Returns
- Promise (Boolean)
Example
.blockUser().then( () => {
})Checks if the user owns the asset
Parameters
- assetId (Number)
Returns
- Promise (Boolean)
Example
.canManageAsset(1).then( canManage => {
})Declines the friend request from the user
Parameters
None
Returns
- Promise (Boolean)
Example
.declineFriendRequest().then( () => {
})Follows the user
Parameters
None
Returns
- Promise (Boolean)
Example
.followUser().then( () => {
})Sends a friend request to the user
Parameters
None
Returns
- Promise (Boolean)
Example
.friendUser().then( () => {
})Gets the user's followers
Parameters
- (optional) page (Number)
Returns
- Promise ()
If you have any questions about this module, or you'd like to try out some other modules made for interacting with the Roblox API, join this server: https://discord.gg/EDXNdAT