Skip to content

Commit

Permalink
w
Browse files Browse the repository at this point in the history
  • Loading branch information
tat2bu committed Jan 3, 2024
1 parent 7267f30 commit 4c8f505
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/extensions/dao/dao.extension.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -884,9 +884,10 @@ export class DAOService extends BaseService {
for (let i=0; i < emojis.length; i+=2) {
await message.react(emojis[i])
}

const voteId = this.createPoll(interaction.guildId, interaction.channelId, message.id, roleRequired, description, until, allowedEmojis, minimumVotesRequired, link)
this.bindReactionCollector(message)

const voteId = this.createPoll(interaction.guildId, interaction.channelId, message.id, roleRequired, description, until, allowedEmojis, minimumVotesRequired, link)
interaction.editReply(`**Vote ID #${voteId}**`)
} else if ('bounded' === interaction.commandName) {
await interaction.deferReply({ephemeral: true})
Expand Down Expand Up @@ -953,7 +954,7 @@ export class DAOService extends BaseService {
}

bindReactionCollector(message: Message) {
console.log(`bindReactionCollector ${message}`)
console.log(`bindReactionCollector ${message.id}`)
let collector = message.createReactionCollector({});
const poll = this.getPollByDiscordMessageId(message.id)

Expand Down

0 comments on commit 4c8f505

Please sign in to comment.