Files: 028237b4b26db208a93b7399ed9575c6608b1999 / position / sync / chooseOne.js
315 bytesRaw
1 | const Position = require('./position') |
2 | const { CHOOSE_ONE } = require('../../types') |
3 | |
4 | function ChooseOne ({ poll, choice, reason, channel, mentions }) { |
5 | return Position({ |
6 | poll, |
7 | details: { |
8 | type: CHOOSE_ONE, |
9 | choice |
10 | }, |
11 | reason, |
12 | channel, |
13 | mentions |
14 | }) |
15 | } |
16 | |
17 | module.exports = ChooseOne |
18 |
Built with git-ssb-web