Skip to content

Commit

Permalink
views.py: Fix voteview
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenChen committed Jun 18, 2024
1 parent 967703c commit 5791b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ async def callback(self, interaction: Interaction):
await interaction.followup.send(
f"Vote started {format_dt(self.view.start, style='R')} has finished.\n{results}")
self.view.stop()
await interaction.client.extras.delete_vote_view(self.view.custom_id)
await interaction.client.extras.delete_voteview(self.view.custom_id)
else:
await interaction.response.send_message("Only the vote creator can end it", ephemeral=True)

Expand Down

0 comments on commit 5791b5f

Please sign in to comment.