Poll
Poll
The poll component creates a Discord poll with a question and multiple answer options.
Example
import { Poll, PollQuestion, PollAnswer } from 'commandkit';
const poll = <Poll duration={24} allowMultiselect={false}>
<PollQuestion>What's your favorite color?</PollQuestion>
<PollAnswer emoji="🟥">Red</PollAnswer>
<PollAnswer emoji="🟦">Blue</PollAnswer>
<PollAnswer emoji="🟩">Green</PollAnswer>
</Poll>;
Signature
function Poll({ children, ...props }: PollProps): PollData
Parameters
{ children, ...props }
parameter