const pollAPI = client.api.poll;
const answerIds = ['yes', 'no', 'maybe'];
logger.info(pollAPI);
for (const answerId of answerIds) {
try {
const voters = await pollAPI.getAnswerVoters(
activePoll.channelId,
activePoll.messageId,
`${answerId}_${activePoll.pokerId}`,
{ limit: 100 }
);
logger.info(`Poll: ${JSON.stringify(voters, null, 2)}`);
const pollAPI = client.api.poll;
const answerIds = ['yes', 'no', 'maybe'];
logger.info(pollAPI);
for (const answerId of answerIds) {
try {
const voters = await pollAPI.getAnswerVoters(
activePoll.channelId,
activePoll.messageId,
`${answerId}_${activePoll.pokerId}`,
{ limit: 100 }
);
logger.info(`Poll: ${JSON.stringify(voters, null, 2)}`);