Browse Source

Userlog: tiny fix

makes event deletion embeds show as "<fancyname> <number>" (Note 1) instead of using "<eventname> <number>" (notes 1)
main
Ave Ozkal 2 years ago
parent
commit
6a79eafd98
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      cogs/mod_userlog.py

+ 2
- 1
cogs/mod_userlog.py View File

@ -69,8 +69,9 @@ class ModUserlog:
if idx < 1:
return "Index is below 1!"
event = userlog[uid][event_type][idx - 1]
event_name = userlog_event_types[event_type].lower()
embed = discord.Embed(color=discord.Color.dark_red(),
title=f"{event_type} {idx} on "
title=f"{event_name} {idx} on "
f"{event['timestamp']}",
description=f"Issuer: {event['issuer_name']}\n"
f"Reason: {event['reason']}")


Loading…
Cancel
Save