event.list
Overview
- Returns all registered game events with their payload schemas
Metadata
| Field | Value |
|---|---|
| Display | List Game Events |
| Category | event |
| Access | Public |
| Scope | B1Standalone |
| Tags | — |
| Aliases | — |
Parameters
- This command takes no parameters.
Returns
Returns a JSON array; each element is an object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | Event id |
description | string | yes | Event description |
fields | array | yes | Payload field schema |
fields[].name | string | yes | Field name |
fields[].type | string | yes | Field type |
fields[].description | string | yes | Field description |
Usage
await inzoi.cli.execute('event.list');