Poll Vote Added

Event triggerMessages

Triggers when a user votes in a poll.

Outputs

User ID

The ID of the user who voted

Example: 123456789012345678

Channel ID

The ID of the channel containing the poll

Example: 123456789012345678

Message ID

The ID of the poll message

Example: 123456789012345678

Guild ID

The ID of the server containing the poll

Example: 123456789012345678

Answer ID

The answer ID the user selected

Example: 1

Build a bot using triggers like Poll Vote Added

Use this trigger in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: message_poll_vote_add

Outputs

FieldInventScript nameValue
User IDuser_ide.g. "123456789012345678"
Channel IDchannel_ide.g. "123456789012345678"
Message IDmessage_ide.g. "123456789012345678"
Guild IDguild_ide.g. "123456789012345678"
Answer IDanswer_ide.g. "1"

Example InventScript

var trigger = message_poll_vote_add()

func main() {
	send_text_message(Args{
		channel_id:      trigger.channel_id,
		message_content: "User ID: " + trigger.user_id,
	})
}

More messages triggers