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