1 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

VotingModel — openapi

model for voting.

Properties

NameTypeRequiredDescription
showVotesbooleanfalseGets or sets show votes.
upVotesintegerfalseGets or sets success.
downVotesintegerfalseGets or sets down votes.
canVotebooleanfalseGets or sets can vote.
userVotebooleanfalseGets or sets user vote.
hasVotedbooleanfalseGets UserVote.
voteCountintegerfalseThe total number of votes
upVotePercentintegerfalseThe percentage of total votes that have been UpVotes

Complete Schema

{
  "type": "object",
  "properties": {
    "showVotes": {
      "type": "boolean",
      "description": "Gets or sets show votes."
    },
    "upVotes": {
      "type": "integer",
      "description": "Gets or sets success.",
      "format": "int64"
    },
    "downVotes": {
      "type": "integer",
      "description": "Gets or sets down votes.",
      "format": "int64"
    },
    "canVote": {
      "type": "boolean",
      "description": "Gets or sets can vote."
    },
    "userVote": {
      "type": "boolean",
      "description": "Gets or sets user vote.",
      "nullable": true
    },
    "hasVoted": {
      "type": "boolean",
      "description": "Gets UserVote.",
      "readOnly": true
    },
    "voteCount": {
      "type": "integer",
      "description": "The total number of votes",
      "format": "int64"
    },
    "upVotePercent": {
      "type": "integer",
      "description": "The percentage of total votes that have been UpVotes",
      "format": "int32"
    }
  },
  "additionalProperties": false,
  "description": "model for voting.",
  "nullable": true
}