Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Ruster.Addons Documentation


Recommended Posts

Posted (edited)

Note
Only override the fields you'd like to be overridden, so if you'd like to only update the avatar of an user, do:

{ "AvatarUrl": avatarUrl }

 

User

{
   "Id": int,
   "AvatarUrl": string,
   "TimezoneOffset": double,
   "CurrentDisplayName": string,
   "CustomDisplayName": string,
   "Wallet": int,
   "IsBot": bool,
   "Friends": [ ulong ],
   "Blocked": [ ulong ],
   "Configuration":
   [
      "Language": string,
      "PinAudioPlayer": bool,
      "PushNotifications": bool,
      "RustPlusNotifications": bool,
      "DMNotifications": bool
   ]
}

 

Feed
Feed types:

  • 0 = None
  • 1 = User
  • 2 = Community
  • 3 = Post
  • 4 = Shop
{
   "Id": ulong,
   "Title": string,
   "BackgroundUrl": string,
   "AllowAdverts": bool,
   "FeedType": int,
   "CanFilter": bool,
   "ShowHashtags": bool
}

I highly recommend you use `post.Publish` to publish a post to a feed, as the ID handling's safely being done.

 

Post
Filter types:

  • 0 = Content
  • 1 = ItemShortname
  • 2 = ItemName
{
   "Id": int,
   "UserId": ulong,
   "Ticks": long,
   "Content": string,
   "PhotoUrl": string,
   "PhotoTag": string,
   "CassetteId": uint,
   "CassetteTitle": string,
   "Advert": [ "DurationHours": float ],
   "MarketplaceListing":
   [
      "CustomName": string,
      "Shortname": string,
      "Skin": ulong,
      "Text": string,
      "Amount": int,
      "AmountLeft": int,
      "Price": int,
      "SubEntityId": uint,
      "IsPurchased": bool,
      "WholeStack": bool
   ],
   "Location":
   [
      "Name": string,
      "Position": [ "X": float, "Y": float, "Z": float ]
   ],
   "Likes": [ ulong ],
   "Dislikes": [ ulong ],
   "Hashtags":
   [{
      "Instances": int,
      "Filter": string,
      "FilterType": int
   }, {
      "Instances": int,
      "Filter": string,
      "FilterType": int
   }]
}

 

Conversation
Conversation types:

  • 0 = None
  • 1 = Team
{
   "Id": int,
   "ConversationType": int,
   "CanDelete": bool,
   "Users": [ ulong ],
   "ViewerList": [ ulong ]
}

 

Direct Message
Status types:

  • 0 = Sent
  • 1 = Read
{
   "Id": int,
   "SenderId": ulong,
   "Message": string,
   "Reaction": string,
   "Ticks": long,
   "Status": int,
   "IsSystemMessage": bool,
   "PhotographUrl": string,
   "CassetteId": uint
}

 

Edited by Raul-Sorin Sorban
Link to comment
Share on other sites

  • Raul-Sorin Sorban changed the title to Ruster.Addons Documentation
  • Death locked and unlocked this topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

About Us

Codefling is a forward-thinking platform for developers to share and monetize their work from plugins to game assets and everything in-between.

6,841 files sold to 616 customers and $99,224 of payments processed this year!

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.