Skip to content

Commit

Permalink
Fix extra kwargs not being accounted for in track duplication (#127)
Browse files Browse the repository at this point in the history
* Account for extra kwargs in AudioTrack cloning

* 4.0.2
  • Loading branch information
devoxin authored Aug 29, 2022
1 parent 3593384 commit 6b2b87e
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__ = '4.0.1'
__version__ = '4.0.2'


import inspect
Expand Down
2 changes: 1 addition & 1 deletion lavalink/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class AudioTrack:
def __init__(self, data: dict, requester: int, **extra):
try:
if isinstance(data, AudioTrack):
extra = data.extra
extra = {**data.extra, **extra}
data = data._raw

self._raw = data
Expand Down

0 comments on commit 6b2b87e

Please sign in to comment.