Skip to content

OnPoll handler

Arius Bronte edited this page Feb 24, 2020 · 3 revisions

Basic usage

Triggers a poll and responds with the word "poll".

commands.OnPoll("poll");

Triggers a voice and and sends randomly from the array word.

commands.OnPoll("it`s poll", "great poll!");

Extended

You can set your own trigger processing logic.

commands.OnPoll(async (api, message, token) =>
{
    // your logic
});
Clone this wiki locally