Weblutions Documentation
Weblutions Main Site Contact Us Our Discord
Some pages are still pending proper formatting, if required refer to the legacy documentation website.
FaxStore IconFaxStore

Weblutions Documentation / FaxStore / Event Object Directory

Updated

Event Object Directory

By Josh M. 1 mins 2

This page contains objects that are returned from certain events. These can be useful when creating extensions that integrate with FaxStores events. The below objects represent the argument names within the event documentation.

Table of Contents


User Object (userObject)

{
"loggedIn":true,
"id":"668497496124686347",
"username":"Shawn E.",
"avatar":"36346a9dd401b58d5aa3a0a793d25f5b",
"discriminator":"5229",
"guilds":null,
"bitfield":"0",
"banned":0,
"cart":[],
"promoCode":[null,null],
"authType":"discord",
"notis":[],
"hidebar":false,
"cookBar":true
}

Store Item Object (storeItem)

{
"id":1,
"title":"Store Item",
"urlId":"item",
"position":1,
"price":"20",
"description":"Cool Very New Store Item",
"credits":"Crediys",
"demoLink":"",
"createdAt":"1660248654988",
"itemType":1,
"onSale":0,
"requiredItem":null,
"tags":"",
"featureImage":"/images/feat-oVIxrEu-_vcP7Z95uai2QAo73.png",
"galleryImages":".",
"discordRole":"",
"hidden":0,
"usingLicenseSystem":0,
"status":"30",
"hiddenonstorepage":0,
"giftcard":0,
"paused":0,
"linked":""
}

Release Object (release)

{
"title":"Release Title",
"version":"Release Version",
"changes":"Changes"
}

Form Object (formObject)

{
  "id":2,
  "title":"Form",
  "urlId":"form",
  "fields":"[{\"type\":\"text\",\"q\":\"Text // Represents a basic text field question \",\"opts\":null},{\"type\":\"area\",\"q\":\"TextArea // Creates the question as a text area \",\"opts\":null},{\"type\":\"drop\",\"q\":\" Dropdown \",\"opts\":[\" option1\",\"option2\",\"option3\"]}",
  "viewers":"",
  "allowReplies":1,
  "createdAt":"1659476388071"
}

Submission Object (submissionObject)

[
{"q":"Question 1 ","a":"Answer 1"},
{"q":"Question 2 ","a":"Answer 2"},
{"q":"Question 3 ","a":"Answer 3"},
{"q":"Question 4 ","a":"Answer 4"},
{"q":" Question 5 ","a":"option3"}
]

Blog Post Object (blogpost)

{
"title":"Blog Title",
"urlId":"UrlID",
"catId":"1",
"blogcontent":"Blog Content",
"image":"/images/blogfeat-r20ETCaOEh3F8T08bNd5wt_c9.png"
}

Review Object (reviewObject)

{
"product":"Store Item",
"stars":"2",
"comment":"asdasd"
}

Thank you to Shawn E for assisting with this documentation.