Discord Guardian

About

A modular, production-ready Discord security bot built with Node.js and Discord.js v14. Features real-time audit logging for channel, role, member, webhook, and server changes with dynamic threshold-based rate limiting. Implements anti-nuke prevention with instant auto-revert using cached server data, anti-prune member protection, and betrayal recovery via periodic state backups. Includes role hierarchy enforcement, multi-tier whitelist system, auto-quarantine for rogue admins, and a master recovery command with 2FA passcode. Provides sleek embed-based UI with interactive dashboards, comprehensive logging channels, in-memory caching for sub-100ms response times, and fully documented setup with environment configuration.