Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
Updated to 1.6.0 with new dpy changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
JackAshwell11 committed Apr 20, 2022
1 parent 8d17189 commit c698b19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lavapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
__author__ = "Aspect1103"
__license__ = "MIT"
__copyright__ = "Copyright 2021-present (c) Aspect1103"
__version__ = "1.5.0"
__version__ = "1.6.0"

logging.getLogger(__name__).addHandler(logging.NullHandler())
6 changes: 5 additions & 1 deletion lavapy/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ async def _sendVoiceUpdate(self) -> None:
}
await self.node._send(voiceUpdate)

async def connect(self, *, timeout: float, reconnect: bool, self_deaf: bool = False, self_mute: bool = False) -> None:
async def connect(self, *, timeout: float, reconnect: bool, selfDeaf: bool = False, selfMute: bool = False) -> None:
"""|coro|
Connects the player to a :class:`discord.VoiceChannel`.
Expand All @@ -271,6 +271,10 @@ async def connect(self, *, timeout: float, reconnect: bool, self_deaf: bool = Fa
The timeout for the connection.
reconnect: bool
A bool stating if reconnection is expected.
selfDeaf: bool
Whether the player should connect deafened or not.
selfMute: bool
Whether the player should connect muted or not.
"""
await self.guild.change_voice_state(channel=self.channel, self_mute=self_mute, self_deaf=self_deaf)
self.node.players.append(self)
Expand Down

0 comments on commit c698b19

Please sign in to comment.