modified: bot.py
This commit is contained in:
6
bot.py
6
bot.py
@@ -5066,6 +5066,9 @@ async def warn(ctx, user: discord.User, reason: str = "No reason provided", mess
|
||||
)
|
||||
except Exception as log_error:
|
||||
logger.error(f"Failed to log silent warning error: {log_error}")
|
||||
|
||||
# Silent mode is complete - exit here to prevent normal logging/responses
|
||||
return
|
||||
|
||||
else:
|
||||
# Normal mode: public response
|
||||
@@ -6665,6 +6668,9 @@ async def mute(ctx, user: discord.User, duration: str, reason: str = "No reason
|
||||
)
|
||||
except Exception as log_error:
|
||||
logger.error(f"Failed to log silent mute error: {log_error}")
|
||||
|
||||
# Silent mode is complete - exit here to prevent normal logging/responses
|
||||
return
|
||||
|
||||
else:
|
||||
# Normal mode: public response
|
||||
|
||||
Reference in New Issue
Block a user