# AddCommandHandler(string,Func\<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, 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, T10>(string commandName, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Coroutine> handler);
```

## Parameters

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