Before packing events into a list, check if it's already one already

This commit is contained in:
Ave Ozkal 2019-01-15 04:51:08 +03:00
parent 297a3156bf
commit 4a54e2caa8
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -14,7 +14,7 @@ class ModUserlog:
event=""):
own_note = " Good for you!" if own else ""
wanted_events = ["warns", "bans", "kicks", "mutes"]
if event:
if event and not isinstance(event, list):
wanted_events = [event]
embed = discord.Embed(color=discord.Color.dark_red())
embed.set_author(name=f"Userlog for {name}")