Back to LazaBot
Infrastructure

AccessNode

LazaBot's intelligent permission and execution management system — preventing crashes, handling errors gracefully, and keeping every command safe and reliable.

Crash Prevention
LazaBot never crashes from missing or invalid permissions.
Smart Validation
Checks user, bot, and channel permissions automatically.
Role Hierarchy
Prevents actions that violate Discord's role hierarchy rules.
Live Monitoring
Tracks execution stats, error logs, and performance metrics.
Detailed Feedback
Sends clean error embeds explaining what failed and why.
Graceful Fallbacks
Falls back to simpler output so users always get a response.
1
Permission Check
Validates all requirements — user permissions, bot permissions, and channel-level access.
2
Role Hierarchy Validation
Confirms the action doesn't violate Discord's role hierarchy before proceeding.
3
Command Execution
If all checks pass, the command runs safely through the executor.
4
Error Handling
If a check fails, execution stops and a detailed, non-crashing error embed is sent.
5
Logging & Monitoring
Every action and error is logged for monitoring, debugging, and performance tracking.
PermissionHandler
Validates all permission layers before any command runs
  • Member and bot permission checks
  • Channel-specific validation
  • Role hierarchy enforcement
  • Moderation action validation
  • Auto-generated error embeds
CommandPermissionWrapper
Links permission validation with command execution
  • Safely runs commands after passing all permission checks
  • Automatically reports missing permissions to the user
  • Tracks execution statistics over time
CommandMiddleware
Automatic permission checking in the command flow
  • Middleware stack for validation and logging
  • Automatic error replies when validation fails
CommandExecutor
The final layer that safely runs your command
  • Built-in validation before execution
  • Error handling and recovery
  • Execution history and performance monitoring
Permission Errors
Displays a detailed embed explaining exactly which permission is missing and how to resolve it.
Execution Errors
If a command fails mid-run, AccessNode captures the error and logs it internally — keeping the bot stable.
Graceful Fallbacks
If embed sending fails, AccessNode automatically falls back to a plain message so users always receive feedback.
/ban /kick /mute Role and permission validation on every moderation command.
ActionTags Reliable, fully logged moderation tracking.
Tickets & Logs Automatically validates bot permissions before sending any messages.

AccessNode is LazaBot's brain for safe command execution. It validates, protects, monitors, and recovers — ensuring your commands always run smoothly, or fail gracefully.