/create
This endpoint is only on the BETA Version of the API and may be unstable.
Please report any & all bugs to the Support Server
Endpoint Headers:
bot-token - Token of the Bot [String] (Required)
apikey - Your Api Auth Key [String] (Required)
guild-id - ID of the guild to be fetched [Snowflake] (Required)
channel-id - ID of the channel to send the poll in [Snowflake] (Required)
Endpoint Body Parameters
question - The question to ask [String] (Required)
answers - Array of answer objects to choose from [Array] (Required) (See below)
duration - How long, in hours, the poll runs for, default 24 [Integer] (Optional)
multiselect - Allow users to select multiple answers, default false [Boolean] (Optional)
content - Message content outside the poll to send [String] (Optional)
Answer Objects
The answers
array will consist of an object for each choice
text - The actual content of the answer choice [String] (Required)
emoji - An emoji object to display on the answer choice [Object] (Optional)
Emoji Objects
Within the answer objects, is also an emoji object
name - Name of emoji, only use for default discord emojis [Unicode Emoji] (Optional)*
id - Id of emoji, only use for custom emojis [Snowflake] (Optional)*
* If using an emoji in an answer, at least one field is required.
Examples:
Possible Responses (Codes)
Last updated