Skip to content

Commit

Permalink
smol fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Snipy7374 committed Sep 2, 2024
1 parent bcce868 commit ba5b685
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions disnake/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -1556,15 +1556,15 @@ def system_content(self) -> Optional[str]:
total_votes = poll_embed_fields["total_votes"]
winning_answer = poll_embed_fields.get("victor_answer_text")
winning_answer_votes = poll_embed_fields.get("victor_answer_votes")
msg = (
f"{self.author.global_name}'s poll {question} has closed. With {total_votes} votes."
)
msg = f"{self.author.display_name}'s poll {question} has closed."

if winning_answer and winning_answer_votes:
msg += (
f" {winning_answer} won with {winning_answer_votes} "
f"({(100 * int(winning_answer_votes)) // int(total_votes)}%)."
)
else:
msg += f" With {total_votes} total votes."
return msg

# in the event of an unknown or unsupported message type, we return nothing
Expand Down

0 comments on commit ba5b685

Please sign in to comment.