Creating Polls
In Seyfert, the ability to create polls
is just around the corner!
This section will show the basic creation of polls, events, and examples.
To receive poll events
, new intents are required.
This is an expanded section of the configuration file.
Receiving Events
There are currently 2 events for polls: messagePollVoteAdd
and messagePollVoteRemove
.
If you don't have the specified intents, the bot won't be able to receive poll events
.
This is tied to the section on event creation.
End of Event
To check when a poll ends, use the messageUpdate
event.
Here's a quick example that edits the message when a poll is completed:
Commands
Quick examples of how to create a poll and how to end it.
The data obtained from polls seems to be unstable. Consider reading the official documentation for more information.
Proceed with caution.
This goes along with the Commands section.
Let's assume you have the following directory structure: