Skip to content

Commit

Permalink
Bugfix for some users name not displaying correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-sokola-siemens committed Oct 10, 2023
1 parent b0b7afa commit b94189a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def toggle_vote(self, interaction: discord.Interaction) -> set[Member]:
asyncio.create_task(vote_button_db.remove_user(self.poll, user, self.index))
users_id.remove(user)

return {interaction.guild.get_member(user_id) for user_id in users_id}
return {interaction.guild.get_member(user_id).display_name for user_id in users_id}

async def edit_embed(self, members: set[Member]) -> discord.Embed:
return self.embed.set_field_at(
Expand Down

0 comments on commit b94189a

Please sign in to comment.