diff --git a/twitchio/websocket.py b/twitchio/websocket.py index da61a6a1..bb57ca73 100644 --- a/twitchio/websocket.py +++ b/twitchio/websocket.py @@ -31,7 +31,7 @@ import time import traceback from functools import partial -from typing import Union, Optional, List, TYPE_CHECKING +from typing import Union, Callable, Optional, List, TYPE_CHECKING import aiohttp @@ -57,7 +57,7 @@ def __init__( client: "Client", token: str = None, modes: tuple = None, - initial_channels: List[str] = None, + initial_channels: Union[list, tuple, Callable] = None, retain_cache: Optional[bool] = True, ): self._loop = loop