Skip to content

CommandSelection

type CommandSelection =
| {
entity: Entity;
type: 'entity';
}
| {
commands: Command[];
type: 'menu';
};

Determines what ChatKit inserts or displays after a command is selected. Returning no selection lets the integration perform an effect outside ChatKit.