From 82240fc0e3d96c2c363512c708cbecca5c7f759a Mon Sep 17 00:00:00 2001 From: Devoxin Date: Thu, 25 Jul 2024 22:29:17 +0100 Subject: [PATCH] take requester before reassigning data --- lavalink/__init__.py | 2 +- lavalink/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lavalink/__init__.py b/lavalink/__init__.py index 258d980d..b17e9d49 100644 --- a/lavalink/__init__.py +++ b/lavalink/__init__.py @@ -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 diff --git a/lavalink/server.py b/lavalink/server.py index 60d5b682..c9a00970 100644 --- a/lavalink/server.py +++ b/lavalink/server.py @@ -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)