Skip to content

Commit

Permalink
take requester before reassigning data
Browse files Browse the repository at this point in the history
  • Loading branch information
devoxin committed Jul 25, 2024
1 parent 184c549 commit 82240fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lavalink/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__author__ = 'Devoxin'
__license__ = 'MIT'
__copyright__ = 'Copyright 2017-present Devoxin'
__version__ = '5.7.0'
__version__ = '5.7.1'


from typing import Type
Expand Down
2 changes: 1 addition & 1 deletion lavalink/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ class AudioTrack:

def __init__(self, data: Union['AudioTrack', Dict[str, Union[Optional[str], bool, int]]], requester: int = 0, **extra):
if isinstance(data, AudioTrack):
requester = requester or cast(AudioTrack, data).requester
extra = {**data.extra, **extra}
data = data.raw
requester = requester or cast(AudioTrack, data).requester

self.raw: Dict[str, Union[Optional[str], bool, int]] = data
info = data.get('info', data)
Expand Down

0 comments on commit 82240fc

Please sign in to comment.