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

Commit

Permalink
Fixed error with player.connect() where parameters names where differ…
Browse files Browse the repository at this point in the history
…ent to voice state change.
  • Loading branch information
JackAshwell11 committed Apr 21, 2022
1 parent c698b19 commit b533db9
Show file tree
Hide file tree
Showing 2 changed files with 2 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.6.0"
__version__ = "1.6.1"

logging.getLogger(__name__).addHandler(logging.NullHandler())
2 changes: 1 addition & 1 deletion lavapy/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ async def connect(self, *, timeout: float, reconnect: bool, selfDeaf: bool = Fal
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)
await self.guild.change_voice_state(channel=self.channel, self_mute=selfMute, self_deaf=selfDeaf)
self.node.players.append(self)
self._connected = True
logger.info(f"Connected to voice channel {self.channel.id}")
Expand Down

0 comments on commit b533db9

Please sign in to comment.