Skip to main content

Vote.CreateOption

Optional integration

This method requires Callvote.

Creates a vote option, which can be used in a vote.

Syntax

Vote.CreateOption option "display_text"

Returns

reference to VoteOption object

Arguments

NameRequiredTypeDescription
optionYesText with no spaces e.g. someValue (quotes are not required)This will be the command for voting AND the result of the vote, if it wins.
display textYesAny text e.g. "Hello, World!"The description of the option.

On a running server

Use serhelp Vote.CreateOption to inspect the reference generated by your installed SER version.