Compare commits
No commits in common. "1e59f0cada55e3570e39c3ad1a88e009f1245bcb" and "9d10e8a635de31f4e36e44688bd8c97b348a6ed0" have entirely different histories.
1e59f0cada
...
9d10e8a635
1 changed files with 2 additions and 7 deletions
|
@ -449,7 +449,7 @@ class Moderation(commands.Cog):
|
|||
await self.mysql_log(interaction.guild.id, interaction.user.id, 'UNBAN', target.id, 'NULL', reason)
|
||||
|
||||
@app_commands.command(name="history")
|
||||
async def history(self, interaction: discord.Interaction, target: discord.Member = None, moderator: discord.Member = None, pagesize: app_commands.Range[int, 1, 25] = 5, page: int = 1, epheremal: bool = False):
|
||||
async def history(self, interaction: discord.Interaction, target: discord.Member = None, moderator: discord.Member = None, pagesize: app_commands.Range[int, 1, 25] = 5, page: int = 1):
|
||||
"""List previous infractions."""
|
||||
database = await self.connect()
|
||||
cursor = database.cursor()
|
||||
|
@ -465,11 +465,6 @@ 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:
|
||||
|
@ -496,7 +491,7 @@ class Moderation(commands.Cog):
|
|||
if bool(case['resolved']):
|
||||
field_value = field_value + "\n**Resolved:** True"
|
||||
embed.add_field(name=field_name, value=field_value, inline=False)
|
||||
await interaction.response.send_message(embed=embed, ephemeral=epheremal)
|
||||
await interaction.response.send_message(embed=embed)
|
||||
|
||||
@app_commands.command(name="resolve")
|
||||
async def resolve(self, interaction: discord.Interaction, case_number: int, reason: str = None):
|
||||
|
|
Loading…
Reference in a new issue