Pular para o conteúdo
He4rt / Docs
Toggle sidebar
Interno noindex

Referência técnica — acessível, mas fora dos buscadores.

Discord
Engenharia Leitura · 2 min Bot Discord documento interno · noindex

Bot Discord Context

Discord bot runtime powered by Laracord. Handles websocket events, slash commands, and acts as the platform-specific glue between the Discord ecosystem and domain modules (moderation, activity, gamification).

Glossary

Term Definition Not to be confused with
Event Handler A Laracord event class that reacts to Discord websocket events (MESSAGE_CREATE, VOICE_STATE_UPDATE, etc.). Thin orchestrators that delegate to domain modules. Domain events (like CaseQueued from moderation)
Listener A Laravel event listener that reacts to domain events emitted by other modules. E.g., NotifyModerationChannel listens to CaseQueued. Laracord event handlers (which react to Discord websocket)
DiscordModerationAdapter Implements ModerationPlatformContract. Orchestrates moderation enforcement on Discord (mute, kick, ban) by delegating HTTP calls to integration-discord Transport. The moderation domain itself (which is platform-agnostic)
ModerationEmbedBuilder Formats moderation case data into Discord embed objects for channel notifications. Transport (which just sends the formatted embed)
AutoExecuteAction Listener for CaseReadyForEnforcement. Creates a ModerationAction and dispatches ExecuteAction when moderation domain signals auto-execution is safe. The execution itself (which is done by ExecuteAction job)

Module Boundaries

This module owns:

This module does NOT own:

Dependencies