Skip to content

Commit

Permalink
Merge pull request #108 from janssensjelle/feature/issue-54-user-disp…
Browse files Browse the repository at this point in the history
…lay-name

[FEATURE] Issue #54 - Change the log to DisplayName (username)
  • Loading branch information
makelarisjr authored Nov 9, 2024
2 parents f89b3d0 + 7d3d4f7 commit ba4204e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/ban.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ async def ban_member(
if not dm_banned_member:
message += " Could not DM banned member due to permission error."

member_name = f"{member.name} ({member.id})"
member_name = f"{member.display_name} ({member.name})"
embed = discord.Embed(
title=f"Ban request #{ban_id}",
description=f"{author.name} would like to ban {member_name} until {end_date} (UTC). Reason: {reason}", )
description=f"{author.display_name} ({author.name}) would like to ban {member_name} until {end_date} (UTC). Reason: {reason}", )
embed.set_thumbnail(url=f"{settings.HTB_URL}/images/logo600.png")
embed.add_field(name="Approve duration:", value=f"/approve {ban_id}", inline=True)
embed.add_field(name="Change duration:", value=f"/dispute {ban_id} <duration>", inline=True)
Expand Down

0 comments on commit ba4204e

Please sign in to comment.