feat(moderation): enabled checking history without a user/target or moderator set
This commit is contained in:
parent
9d10e8a635
commit
3c35eeb29d
1 changed files with 5 additions and 0 deletions
|
@ -465,6 +465,11 @@ class Moderation(commands.Cog):
|
|||
WHERE moderator_id = %s
|
||||
ORDER BY moderation_id DESC;"""
|
||||
cursor.execute(query, (interaction.guild.id, moderator.id))
|
||||
else:
|
||||
query = """SELECT *
|
||||
FROM moderation_%s
|
||||
ORDER BY moderation_id DESC;"""
|
||||
cursor.execute(query, (interaction.guild.id))
|
||||
results = cursor.fetchall()
|
||||
result_dict_list = []
|
||||
for result in results:
|
||||
|
|
Loading…
Reference in a new issue