# AddCommandHandler(string,Action\<T1>)

Method in [Actions](https://docs.yarnspinner.dev/2.4/api/csharp/yarn.unity/yarn.unity.actions)

## Summary

```csharp
public void AddCommandHandler<T1>(string commandName, Action<T1> handler);
```

## Parameters

| Name                        | Description |
| --------------------------- | ----------- |
| `string` commandName        |             |
| `System.Action<T1>` handler |             |
