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

## Parameters

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