Skip to content

Poll

import {
// Main
makePoll,
// Child
makePollMedia,
makePollAnswer,
} from 'discord-hono'
import { DiscordHono, makePoll } from 'discord-hono'
const app = new DiscordHono().command('poll', c =>
c.res({
poll: makePoll('What is your favorite color?', [
['🔴', 'Red'],
['🟢', 'Green'],
'Blue',
'Yellow',
])
.allow_multiselect(true)
.duration(1),
}),
)

If your editor supports autocompletion, typing . will show a list of available methods.

Please refer to the Official Docs for details on each method.