Skip to main content

event.describe

Overview

  • Returns the payload schema of a specific game event

Metadata

FieldValue
DisplayDescribe Game Event
Categoryevent
AccessPublic
ScopeB1Standalone
Tags
Aliases

Parameters

NameTypeRequiredDefaultDescription
namestringyesEvent name to describe

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
namestringyesEvent id
descriptionstringyesEvent description
fieldsarrayyesPayload field schema
fields[].namestringyesField name
fields[].typestringyesField type
fields[].descriptionstringyesField description

Usage

await inzoi.cli.execute('event.describe', {
name: '',
});