aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-08-10 11:42:41 -0700
committerGravatar MarkKoz <[email protected]>2020-08-10 11:42:41 -0700
commit3c6cb81e6e36aa3e7321a92ea4e6625f99b3ce7c (patch)
tree2264ef68693a9e8ab2f56219c920548e9fb40962
parentUse format_user in token remover test (diff)
Zero-fill discriminators in infraction searches
Diffstat (limited to '')
-rw-r--r--bot/cogs/moderation/management.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/management.py b/bot/cogs/moderation/management.py
index b4c69acc2..56a601cb7 100644
--- a/bot/cogs/moderation/management.py
+++ b/bot/cogs/moderation/management.py
@@ -252,7 +252,7 @@ class ModManagement(commands.Cog):
else:
# Use the user data retrieved from the DB.
name = escape_markdown(user['name'])
- user_str = f"<@{user['id']}> ({name}#{user['discriminator']})"
+ user_str = f"<@{user['id']}> ({name}#{user['discriminator']:04})"
if active:
remaining = time.until_expiration(expires_at) or "Expired"