Skip to content

Commit

Permalink
Address changes
Browse files Browse the repository at this point in the history
  • Loading branch information
flaree committed Sep 2, 2024
1 parent 88ffeca commit ca7a765
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ballsdex/packages/admin/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,8 @@ async def blacklist_remove(
"User is now removed from blacklist.", ephemeral=True
)
await log_action(
f"{interaction.user} removed blacklist for user {user} ({user.id}).", self.bot
f"{interaction.user} removed blacklist for user {user} ({user.id}).\nReason: {reason}",
self.bot,
)

@blacklist.command(name="info")
Expand Down Expand Up @@ -779,7 +780,7 @@ async def blacklist_info(

@blacklist.command(name="history")
@app_commands.checks.has_any_role(*settings.root_role_ids, *settings.admin_role_ids)
async def blacklist_history(self, interaction: discord.Interaction, id: str):
async def blacklist_history(self, interaction: discord.Interaction, user_id: str):
"""
Show the history of a blacklisted user or guild.
Expand All @@ -789,7 +790,7 @@ async def blacklist_history(self, interaction: discord.Interaction, id: str):
The ID of the user or guild you want to check.
"""
try:
_id = int(id)
_id = int(user_id)
except ValueError:
await interaction.response.send_message(
"The ID you gave is not valid.", ephemeral=True
Expand Down Expand Up @@ -916,7 +917,9 @@ async def blacklist_remove_guild(
"Guild is now removed from blacklist.", ephemeral=True
)
await log_action(
f"{interaction.user} removed blacklist for guild {guild} ({guild.id}).", self.bot
f"{interaction.user} removed blacklist for guild {guild} ({guild.id}).\n"
f"Reason: {reason}",
self.bot,
)

@blacklist_guild.command(name="info")
Expand Down

0 comments on commit ca7a765

Please sign in to comment.