# `BB.Command.Event`
[🔗](https://github.com/beam-bots/bb/blob/main/lib/bb/command/event.ex#L5)

Payload type for command execution events.

Published to `[:command, command_name, execution_id]` path during command lifecycle.

# `status`

```elixir
@type status() :: :started | :succeeded | :failed | :cancelled
```

# `t`

```elixir
@type t() :: %BB.Command.Event{data: map(), status: status()}
```

# `new`

```elixir
@spec new(
  atom(),
  keyword()
) :: {:ok, BB.Message.t()} | {:error, term()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
