Skip to content

CommandOutputEvent

Base classes

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

⋔ Inheritance diagram

graph TD
  3286820345["events.CommandOutputEvent"]
  3481597255["typing.Generic"]
  2751680898["builtins.object"]
  3481597255 --> 3286820345
  2751680898 --> 3481597255

🛈 DocStrings

Event emitted when a command is executed.

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

    output: str
    context: CommandContext[TData]

:fa-brands-github: Show source on GitHub