diff --git a/ballsdex/packages/admin/cog.py b/ballsdex/packages/admin/cog.py index b11fa3bd..ffd18ccf 100644 --- a/ballsdex/packages/admin/cog.py +++ b/ballsdex/packages/admin/cog.py @@ -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") @@ -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. @@ -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 @@ -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")