From 6b2b87e22a0fd46a0f2908504d147f08b9420993 Mon Sep 17 00:00:00 2001 From: Devoxin <15076404+Devoxin@users.noreply.github.com> Date: Mon, 29 Aug 2022 18:44:39 +0100 Subject: [PATCH] Fix extra kwargs not being accounted for in track duplication (#127) * Account for extra kwargs in AudioTrack cloning * 4.0.2 --- lavalink/__init__.py | 2 +- lavalink/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lavalink/__init__.py b/lavalink/__init__.py index 8a7dbe03..f3ea782f 100644 --- a/lavalink/__init__.py +++ b/lavalink/__init__.py @@ -4,7 +4,7 @@ __author__ = 'Devoxin' __license__ = 'MIT' __copyright__ = 'Copyright 2017-present Devoxin' -__version__ = '4.0.1' +__version__ = '4.0.2' import inspect diff --git a/lavalink/models.py b/lavalink/models.py index 7016105b..7e7fd524 100644 --- a/lavalink/models.py +++ b/lavalink/models.py @@ -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