---
name: TextChatCommandMatchMode
last_updated: 2026-11-16T22:19:02Z
type: enum
summary: "How TextChatCommand compares a message to its aliases."
---

# TextChatCommandMatchMode

How [TextChatCommand](/docs/reference/engine/classes/TextChatCommand.md) compares a message to its aliases.

**Type:** enum

## Description

How [TextChatCommand](/docs/reference/engine/classes/TextChatCommand.md) compares a message to
[PrimaryAlias](/docs/reference/engine/classes/TextChatCommand.md) and
[SecondaryAlias](/docs/reference/engine/classes/TextChatCommand.md).

[TextChatCommandMatchMode.Exact](/docs/reference/engine/enums/TextChatCommandMatchMode.md) and
[TextChatCommandMatchMode.WholeWord](/docs/reference/engine/enums/TextChatCommandMatchMode.md) skip aliases shorter than two bytes.
[TextChatCommandMatchMode.StartsWith](/docs/reference/engine/enums/TextChatCommandMatchMode.md) can match a one-byte alias.

## Items

| Name | Value | Description |
|------|-------|-------------|
| `StartsWith` | 0 | The message begins with the alias, then ends or continues with a space. With the alias `/wave`, `/wave` and `/wave hi` match, while `/waves` and `Hi /wave` do not. |
| `Exact` | 1 | The whole message equals the alias. With the alias `wave`, `wave` matches, while `wave hi` and `Hi wave` do not. |
| `WholeWord` | 2 | The alias occurs as its own word. The byte before it is the start of the message or whitespace, and the byte after it is the end, whitespace, or punctuation. `wave` matches inside `Hello wave!` and `wave hi`, but not `waves`. |