From 7fae8f4ae9f7d4d1f66ca9370efa51a809f80657 Mon Sep 17 00:00:00 2001 From: Dmitriy N <61805167+Xakka@users.noreply.github.com> Date: Sat, 7 Jan 2023 01:46:16 +0300 Subject: [PATCH] Add mnemonic to set_playlist() Successfully tested --- fortnitepy/party.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fortnitepy/party.py b/fortnitepy/party.py index 26cb0e40..6d8da919 100644 --- a/fortnitepy/party.py +++ b/fortnitepy/party.py @@ -1180,6 +1180,7 @@ def set_squad_assignments(self, data: List[dict]) -> Dict[str, Any]: return {key: self.set_prop(key, final)} def set_playlist(self, playlist: Optional[str] = None, *, + mnemonic: Optional[str] = None, tournament: Optional[str] = None, event_window: Optional[str] = None, region: Optional[Region] = None) -> Dict[str, Any]: @@ -1187,6 +1188,8 @@ def set_playlist(self, playlist: Optional[str] = None, *, if playlist is not None: data['playlistName'] = playlist + if mnemonic is not None: + data['linkId'] = {'mnemonic': mnemonic} if tournament is not None: data['tournamentId'] = tournament if event_window is not None: @@ -3913,6 +3916,7 @@ async def set_privacy(self, privacy: PartyPrivacy) -> None: ) async def set_playlist(self, playlist: Optional[str] = None, + mnemonic: Optional[str] = None, tournament: Optional[str] = None, event_window: Optional[str] = None, region: Optional[Region] = None) -> None: @@ -3942,6 +3946,8 @@ async def set_playlist(self, playlist: Optional[str] = None, playlist: Optional[:class:`str`] The name of the playlist. Defaults to :attr:`Region.EUROPE` + mnemonic: Optional[:class:`str`] + The mnemonic code of island. tournament: Optional[:class:`str`] The tournament id. event_window: Optional[:class:`str`] @@ -3963,6 +3969,7 @@ async def set_playlist(self, playlist: Optional[str] = None, prop = self.meta.set_playlist( playlist=playlist, + mnemonic=mnemonic, tournament=tournament, event_window=event_window, region=region