Skip to content

CommandExecutedEvent

Base classes

Name Children Inherits
Generic
typing
Abstract base class for generic types.

⋔ Inheritance diagram

graph TD
  938158863["events.CommandExecutedEvent"]
  3481597255["typing.Generic"]
  2751680898["builtins.object"]
  3481597255 --> 938158863
  2751680898 --> 3481597255

🛈 DocStrings

Event emitted when a command is executed.

Source code in src/slashed/events.py
@dataclass
class CommandExecutedEvent[TData]:
    """Event emitted when a command is executed."""

    command: str
    context: CommandContext[TData]
    success: bool
    result: Any | None = None
    error: Exception | None = None

:fa-brands-github: Show source on GitHub