mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2025-01-09 14:35:27 +00:00
Before packing events into a list, check if it's already one already
This commit is contained in:
parent
297a3156bf
commit
4a54e2caa8
|
@ -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}")
|
||||
|
|
Loading…
Reference in a new issue