Skip to content

Classes

Kekulator edited this page Sep 9, 2018 · 1 revision


RobloxMessage

Properties

  • 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 **

Methods

RobloxMessage.archive

Archives the message

Parameters

None

Returns

  • Promise (Boolean)

Example

.archive().then( () => {

})

RobloxMessage.markRead

markRead?

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( () => {

})

RobloxMessage.moveToInbox

Moves the message from the archive to the inbox

Parameters

None

Returns

  • Promise (Boolean)

Example

.moveToInbox().then( () => {

})

RobloxMessage.reply

subject, message

Sends a reply back to the sender

Parameters

  • subject (String)
  • message (String)

Returns

  • Promise (Boolean)

Example

.reply("No thx", "I'm not interested").then( () => {

})

UserFunctions

Properties

Methods

UserFunctions.acceptFriendRequest

Accepts the friend request

Parameters

None

Returns

  • Promise (Boolean)

Example

.acceptFriendRequest().then( () => {

})

UserFunctions.blockUser

Blocks the user

Parameters

None Returns

  • Promise (Boolean)

Example

.blockUser().then( () => {

})

UserFunctions.canManageAsset

assetId

Checks if the user owns the asset

Parameters

  • assetId (Number)

Returns

  • Promise (Boolean)

Example

.canManageAsset(1).then( canManage => {

})

UserFunctions.declineFriendRequest

Declines the friend request from the user

Parameters

None

Returns

  • Promise (Boolean)

Example

.declineFriendRequest().then( () => {

})

UserFunctions.followUser

Follows the user

Parameters

None

Returns

  • Promise (Boolean)

Example

.followUser().then( () => {

})

UserFunctions.friendUser

Sends a friend request to the user

Parameters

None

Returns

  • Promise (Boolean)

Example

.friendUser().then( () => {

})

UserFunctions.getFollowers

(page)

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

Clone this wiki locally