# AddCommandHandler(string,Func\<T1, T2, T3, T4, T5, T6, T7, T8, T9, Coroutine>)

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

## Summary

```csharp
public void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9>(string commandName, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, Coroutine> handler);
```

## Parameters

| Name                                                                             | Description |
| -------------------------------------------------------------------------------- | ----------- |
| `string` commandName                                                             |             |
| `System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, UnityEngine.Coroutine>` handler |             |
