> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.commandhandler.md).

# CommandHandler

Delegate in [Yarn](/2.4/api/csharp/yarn.md)

Inherits from `System.MulticastDelegate`

## Summary

Represents the method that is called when the Dialogue delivers a [Command](/2.4/api/csharp/yarn/yarn.command.md) .

```csharp
public delegate void CommandHandler(Command command);
```

## Parameters

| Name                                                         | Description                                                                  |
| ------------------------------------------------------------ | ---------------------------------------------------------------------------- |
| [Yarn.Command](/2.4/api/csharp/yarn/yarn.command.md) command | The [Command](/2.4/api/csharp/yarn/yarn.command.md) that has been delivered. |

## See Also

* [LineHandler](/2.4/api/csharp/yarn/yarn.linehandler.md): Represents the method that is called when the Dialogue delivers a [Line](/2.4/api/csharp/yarn/yarn.line.md) .
* [OptionsHandler](/2.4/api/csharp/yarn/yarn.optionshandler.md): Represents the method that is called when the Dialogue delivers an [OptionSet](/2.4/api/csharp/yarn/yarn.optionset.md) .
* [NodeStartHandler](/2.4/api/csharp/yarn/yarn.nodestarthandler.md): Represents the method that is called when the Dialogue begins executing a node.
* [NodeCompleteHandler](/2.4/api/csharp/yarn/yarn.nodecompletehandler.md): Represents the method that is called when the Dialogue reaches the end of a node.
* [DialogueCompleteHandler](/2.4/api/csharp/yarn/yarn.dialoguecompletehandler.md): Represents the method that is called when the dialogue has reached its end, and no more code remains to be run.
