Userlog: tiny fix

makes event deletion embeds show as "<fancyname> <number>" (Note 1) instead of using "<eventname> <number>" (notes 1)
This commit is contained in:
Ave Ozkal 2018-12-27 14:00:53 +03:00
parent 6a8819a2a8
commit 9defe42424
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

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