Skip to content

Commit

Permalink
Merge pull request #7 from interactions-py/unstable
Browse files Browse the repository at this point in the history
chore: merge unstable to main
  • Loading branch information
Damego authored Oct 19, 2022
2 parents f63e985 + 05e94ae commit 38273b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion interactions/ext/lavalink/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from interactions.ext.version import Version, VersionAuthor

__all__ = ["version", "base"]
__version__ = "0.1.1"
__version__ = "0.1.2"

version = Version(
version=__version__, author=VersionAuthor(name="Damego", email="[email protected]")
Expand Down
4 changes: 3 additions & 1 deletion interactions/ext/lavalink/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ class VoiceClient(Client):
def __init__(self, token: str, **kwargs):
super().__init__(token, **kwargs)

self._websocket = VoiceWebSocketClient(self, token, self._intents)
self._websocket = VoiceWebSocketClient(
self, token, self._intents, shards=self._shards, presence=self._presence
)
self.lavalink_client: LavalinkClient = None

self._websocket._dispatch.register(
Expand Down
6 changes: 3 additions & 3 deletions interactions/ext/lavalink/websocket.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import TYPE_CHECKING

from interactions import OpCodeType, Storage, WebSocketClient, HTTPClient
from interactions import HTTPClient, OpCodeType, Storage, WebSocketClient

from .models import VoiceServer, VoiceState

Expand All @@ -11,9 +11,9 @@


class VoiceWebSocketClient(WebSocketClient):
def __init__(self, bot_var: "VoiceClient", *args):
def __init__(self, bot_var: "VoiceClient", *args, **kwargs):
self._bot_var: "VoiceClient" = bot_var
super().__init__(*args)
super().__init__(*args, **kwargs)

async def run(self) -> None:
"""
Expand Down

0 comments on commit 38273b9

Please sign in to comment.