diff options
| author | 2020-09-23 09:35:18 -0700 | |
|---|---|---|
| committer | 2020-09-23 09:35:18 -0700 | |
| commit | 77205149613e25623ee646de977e5d5d0cd16e11 (patch) | |
| tree | 48c129b7982c08fb591b501665ff15068f251cfe | |
| parent | Update format_user to remove username and add ID (diff) | |
Fix use of expanded infraction response for username
Fixes BOT-9A
| -rw-r--r-- | bot/exts/moderation/infraction/management.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/infraction/management.py b/bot/exts/moderation/infraction/management.py index de4fb4175..856a4e1a2 100644 --- a/bot/exts/moderation/infraction/management.py +++ b/bot/exts/moderation/infraction/management.py @@ -194,7 +194,7 @@ class ModManagement(commands.Cog):          user = self.bot.get_user(user.id)          if not user and infraction_list:              # Use the user data retrieved from the DB for the username. -            user = infraction_list[0] +            user = infraction_list[0]["user"]              user = escape_markdown(user["name"]) + f"#{user['discriminator']:04}"          embed = discord.Embed(  |