> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# TypeTrigger

> Interface exported by @botmesh/core.

Defined in: [core/triggers.ts:47](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/triggers.ts#L47)

A trigger that matches on the inbound kind (`ctx.type`) instead of the body.
Build one with [typeTrigger](https://botmesh.afaya.com.co/api/core/functions/typeTrigger.md) or use the exported constants.

## Properties

### kind

```ts theme={null}
readonly kind: "type";
```

Defined in: [core/triggers.ts:48](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/triggers.ts#L48)

***

### types

```ts theme={null}
readonly types: readonly MessageType[];
```

Defined in: [core/triggers.ts:50](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/triggers.ts#L50)

The `ctx.type` values this trigger accepts. An empty list never matches.

***

### scope?

```ts theme={null}
readonly scope?: TriggerScope;
```

Defined in: [core/triggers.ts:52](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/triggers.ts#L52)

Restrict to DMs or groups, like `TriggerObject.scope`. Default `'all'`.

***

### label?

```ts theme={null}
readonly label?: string;
```

Defined in: [core/triggers.ts:54](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/triggers.ts#L54)

Human-readable name, for logs and debugging only.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.