Enhance moderation functionality in Discord bot

- Added new moderation commands: `/warn` and `/inspect`, improving user interaction for warnings and user inspections.
- Refactored the `send_warning_confirmation` function to streamline the warning process and improve message formatting.
- Updated command handling to ensure proper user feedback and error handling during moderation actions.
- Improved the overall structure of moderation-related functions for better maintainability.
This commit is contained in:
2026-05-03 18:22:35 +02:00
parent 769251df0d
commit 9d840e9bde
2 changed files with 258 additions and 62 deletions
+8
View File
@@ -27,6 +27,10 @@ from discordbot.moderation import (
moderation_ctx_ban_author,
moderation_ctx_kick_author,
moderation_ctx_timeout_author,
moderation_slash_warn,
moderation_slash_inspect,
moderation_ctx_warn_author,
moderation_ctx_inspect_author,
moderation_slash_say,
)
from discordbot.welcome import sendWelcomeMessage, sendLeaveMessage, updateInviteCache
@@ -50,6 +54,10 @@ class DiscordBot(discord.Client):
moderation_ctx_ban_author,
moderation_ctx_kick_author,
moderation_ctx_timeout_author,
moderation_slash_warn,
moderation_slash_inspect,
moderation_ctx_warn_author,
moderation_ctx_inspect_author,
moderation_slash_say,
protondb_slash_command,
pdb_slash_command,