Skip to content

Defers vote interaction to solve bug#1469

Open
ajax146 wants to merge 1 commit intomainfrom
DeferVoteInteraction
Open

Defers vote interaction to solve bug#1469
ajax146 wants to merge 1 commit intomainfrom
DeferVoteInteraction

Conversation

@ajax146
Copy link
Copy Markdown
Contributor

@ajax146 ajax146 commented Apr 19, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@dkay0670 dkay0670 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these need to be changed to be a followup as well?

# Check if voter is allowed to vote
vote_ids_eligible = db_entry.vote_ids_eligible.split(",")
if str(interaction.user.id) not in vote_ids_eligible:
await interaction.response.send_message(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be changed to be a followup as well?


embed = await self.build_vote_embed(db_entry.vote_id, interaction.guild)
await interaction.message.edit(embed=embed, view=view)
await interaction.response.send_message(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be changed to be a followup as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants