fixed typos
This commit is contained in:
parent
22b490829a
commit
d564b620bc
|
|
@ -31,7 +31,7 @@ from .utils import (
|
||||||
ClientType,
|
ClientType,
|
||||||
ExponentialBackoff,
|
ExponentialBackoff,
|
||||||
NodeStats,
|
NodeStats,
|
||||||
NodeAlgorithims,
|
NodeAlgorithms,
|
||||||
)
|
)
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
@ -478,7 +478,7 @@ class NodePool:
|
||||||
def get_node(
|
def get_node(
|
||||||
cls, *,
|
cls, *,
|
||||||
identifier: str = None,
|
identifier: str = None,
|
||||||
algorithim : NodeAlgorithims = NodeAlgorithims.base,
|
algorithim : NodeAlgorithms = NodeAlgorithms.base,
|
||||||
args=(), **kwargs
|
args=(), **kwargs
|
||||||
|
|
||||||
) -> Node:
|
) -> Node:
|
||||||
|
|
@ -496,11 +496,11 @@ class NodePool:
|
||||||
return available_nodes.get(identifier, None)
|
return available_nodes.get(identifier, None)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_player(cls, guildId) -> Union[Player, None]:
|
def get_player(cls, guild_id) -> Union[Player, None]:
|
||||||
"""Retruns the Exact Player object after Searching all the Nodes.
|
"""Retruns the Exact Player object after Searching all the Nodes.
|
||||||
"""
|
"""
|
||||||
for node in [node for node in cls._nodes.values() if node._available]:
|
for node in [node for node in cls._nodes.values() if node._available]:
|
||||||
if (player := node.players.get(guildId, None)):
|
if (player := node.players.get(guild_id, None)):
|
||||||
return player
|
return player
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue