# Command

Struct in [Yarn](https://docs.yarnspinner.dev/2.4/api/csharp/yarn)

Inherits from `System.ValueType`

## Summary

A command, sent from the [Dialogue](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.dialogue) to the game.

```csharp
public struct Command
```

## Remarks

You do not create instances of this struct yourself. They are created by the [Dialogue](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.dialogue) during program execution.

## Properties

| Name                                                                                    | Description                   |
| --------------------------------------------------------------------------------------- | ----------------------------- |
| [Text](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.command/yarn.command.text) | Gets the text of the command. |

## See Also

* [Dialogue.CommandHandler](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.dialogue/yarn.dialogue.commandhandler): Gets or sets the [CommandHandler](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.commandhandler) that is called when a command is to be delivered to the game.
