Creating Polls
In Seyfert, the ability to create polls
is just around the corner!
This section shows the basic creation of polls, events and examples.
This is an extended section of the configuration file.
Receiving Events
Currently there are 2 events for polls:
messagePollVoteAdd
andmessagePollVoteRemove
.
Ending Event
The way to check when a poll is ended is to use the
messageUpdate
event.
Here is a quick example that edits the message when a poll is completed:
Commands
Quick examples on how to create a poll and how to end it.
It’s suppose you have the following directory structure:
- src
Directorycommands
Directorypoll
- start.command.ts
- end.command.ts
- parent.ts
- index.ts
- seyfert.config.js
- package.json
- tsconfig.json