Update Audio to use RLL 0.11.0rc0 (#5631)

* Replace player.manager to player.node

* Try using bot.is_closed instead of get_voice_ws.

* Use Shard.is_closed instead of bot.is_closed.

* Use RLL PR as dep.

* Update audio to use add dep to https://github.com/Cog-Creators/Red-Lavalink/pull/122

* few thing missing

* Missing `player.manager.node` -> `player.node` change

* Update setup.cfg

Co-authored-by: PredaaA <46051820+PredaaA@users.noreply.github.com>
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
Draper
2022-03-31 10:44:09 +01:00
committed by GitHub
parent 9ec85d4819
commit 511de5163f
8 changed files with 18 additions and 21 deletions

View File

@@ -352,7 +352,7 @@ class MixinMeta(ABC):
@abstractmethod
async def _maybe_update_playlist(
self, ctx: commands.Context, player: lavalink.player_manager.Player, playlist: "Playlist"
self, ctx: commands.Context, player: lavalink.player.Player, playlist: "Playlist"
) -> Tuple[List[lavalink.Track], List[lavalink.Track], "Playlist"]:
raise NotImplementedError()
@@ -424,7 +424,7 @@ class MixinMeta(ABC):
@abstractmethod
async def get_localtrack_folder_tracks(
self, ctx, player: lavalink.player_manager.Player, query: "Query"
self, ctx, player: lavalink.player.Player, query: "Query"
) -> List[lavalink.rest_api.Track]:
raise NotImplementedError()
@@ -475,7 +475,7 @@ class MixinMeta(ABC):
self,
ctx: commands.Context,
queue: list,
player: lavalink.player_manager.Player,
player: lavalink.player.Player,
page_num: int,
) -> discord.Embed:
raise NotImplementedError()
@@ -500,7 +500,7 @@ class MixinMeta(ABC):
async def fetch_playlist_tracks(
self,
ctx: commands.Context,
player: lavalink.player_manager.Player,
player: lavalink.player.Player,
query: "Query",
skip_cache: bool = False,
) -> Union[discord.Message, None, List[MutableMapping]]:
@@ -534,7 +534,7 @@ class MixinMeta(ABC):
self,
ctx: commands.Context,
uploaded_track_list,
player: lavalink.player_manager.Player,
player: lavalink.player.Player,
playlist_url: str,
uploaded_playlist_name: str,
scope: str,