Before packing events into a list, check if it's already one already
This commit is contained in:
parent
297a3156bf
commit
4a54e2caa8
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class ModUserlog:
|
||||||
event=""):
|
event=""):
|
||||||
own_note = " Good for you!" if own else ""
|
own_note = " Good for you!" if own else ""
|
||||||
wanted_events = ["warns", "bans", "kicks", "mutes"]
|
wanted_events = ["warns", "bans", "kicks", "mutes"]
|
||||||
if event:
|
if event and not isinstance(event, list):
|
||||||
wanted_events = [event]
|
wanted_events = [event]
|
||||||
embed = discord.Embed(color=discord.Color.dark_red())
|
embed = discord.Embed(color=discord.Color.dark_red())
|
||||||
embed.set_author(name=f"Userlog for {name}")
|
embed.set_author(name=f"Userlog for {name}")
|
||||||
|
|
Loading…
Reference in a new issue