diff options
| author | 2021-03-06 14:36:15 +0200 | |
|---|---|---|
| committer | 2021-03-06 14:36:15 +0200 | |
| commit | 4f7a9fb9af2f4eac803a7b1b597ce5e0091f4210 (patch) | |
| tree | 3b61902d97961c200af6048afe60bc5d857f49c6 | |
| parent | Fix grammar of nomination cog (diff) | |
Use actor mention instead of username in nomination string
| -rw-r--r-- | bot/exts/moderation/watchchannels/talentpool.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/moderation/watchchannels/talentpool.py b/bot/exts/moderation/watchchannels/talentpool.py index 938720cc0..55c41a754 100644 --- a/bot/exts/moderation/watchchannels/talentpool.py +++ b/bot/exts/moderation/watchchannels/talentpool.py @@ -271,7 +271,9 @@ class TalentPool(WatchChannel, Cog, name="Talentpool"): reason = site_entry["reason"] or "*None*" created = time.format_infraction(site_entry["inserted_at"]) - entries.append(f"Actor: {actor or actor_id}\nReason: {reason}\nCreated: {created}") + entries.append( + f"Actor: {actor.mention if actor else actor_id}\nReason: {reason}\nCreated: {created}" + ) entries_string = "\n\n".join(entries) |