mirror of
https://github.com/alterware/aw-bot.git
synced 2025-12-16 06:27:48 +00:00
fix: missing await
This commit is contained in:
@@ -80,9 +80,9 @@ async def timeout_member(
|
||||
|
||||
try:
|
||||
# Debug: Print the member object and timeout duration
|
||||
logger.debug(f"Debug: Attempting to timeout member {member} (ID: {member.id}).")
|
||||
logger.debug(f"Debug: Timeout duration set to {duration}.")
|
||||
logger.debug(f"Debug: Reason: {reason}")
|
||||
logger.debug(f"Attempting to timeout member {member} (ID: {member.id}).")
|
||||
logger.debug(f"Timeout duration set to {duration}.")
|
||||
logger.debug(f"Reason: {reason}")
|
||||
|
||||
await member.timeout(duration, reason=reason)
|
||||
logger.info(f"Successfully timed out {member}.")
|
||||
|
||||
Reference in New Issue
Block a user