updated constant for autoshardedbot

This commit is contained in:
chrmatic 2026-01-27 12:32:29 +00:00
parent bf9c1b8726
commit 5c5d4831d2
1 changed files with 3 additions and 3 deletions

View File

@ -113,7 +113,7 @@ class Node:
self, self,
*, *,
pool: Type[NodePool], pool: Type[NodePool],
bot: commands.Bot, bot: commands.Bot | commands.AutoShardedBot,
host: str, host: str,
port: int, port: int,
password: str, password: str,
@ -134,7 +134,7 @@ class Node:
if not isinstance(port, int): if not isinstance(port, int):
raise TypeError("Port must be an integer") raise TypeError("Port must be an integer")
self._bot: commands.Bot = bot self._bot: commands.Bot | commands.AutoShardedBot = bot
self._host: str = host self._host: str = host
self._port: int = port self._port: int = port
self._pool: Type[NodePool] = pool self._pool: Type[NodePool] = pool
@ -1052,7 +1052,7 @@ class NodePool:
async def create_node( async def create_node(
cls, cls,
*, *,
bot: commands.Bot, bot: commands.Bot | commands.AutoShardedBot,
host: str, host: str,
port: int, port: int,
password: str, password: str,