Files: ff7663e73e7aedeb75242d658e91bb048df0253f / poll / sync / chooseOne.js
328 bytesRaw
1 | const Poll = require('./poll') |
2 | const { chooseOneType } = require('../types') |
3 | |
4 | function ChooseOne ({ choices, title, body, channel, recps, mentions }) { |
5 | return Poll({ |
6 | pollDetails: { |
7 | choices, |
8 | type: chooseOneType |
9 | }, |
10 | title, |
11 | body, |
12 | channel, |
13 | recps, |
14 | mentions |
15 | }) |
16 | } |
17 | |
18 | module.exports = ChooseOne |
19 |
Built with git-ssb-web