Skip to content

Commit

Permalink
feat: allow players to not be disconnected by library
Browse files Browse the repository at this point in the history
  • Loading branch information
ooliver1 committed Feb 12, 2023
1 parent 0c18ffa commit 283485d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions mafic/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ async def disconnect(self, *, force: bool = False) -> None:
if not self._connected and not force:
return

# Handled by Discord
if self.client.is_closed():
return

try:
_log.debug(
"Disconnecting from voice channel.",
Expand Down
10 changes: 9 additions & 1 deletion test_bot/lavalink/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ logging:

level:
root: INFO
lavalink: INFO
lavalink: DEBUG

request:
enabled: true
includeClientInfo: true
includeHeaders: false
includeQueryString: true
includePayload: true
maxPayloadLength: 10000

logback:
rollingpolicy:
Expand Down

0 comments on commit 283485d

Please sign in to comment.