From 591391aeb700372e53a1b0a4e3976208fe68785e Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Wed, 28 Jun 2023 04:29:02 +0100 Subject: [PATCH] return raw message if raw. patch bump --- pyproject.toml | 2 +- streamlabsio/client.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index db9b8c6..0536f4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "streamlabsio" -version = "1.0.0" +version = "1.0.1" description = "Get real time Twitch/Youtube events through Streamlabs SocketIO API" authors = ["onyx-and-iris "] license = "MIT" diff --git a/streamlabsio/client.py b/streamlabsio/client.py index 189b53a..0e9f9a0 100644 --- a/streamlabsio/client.py +++ b/streamlabsio/client.py @@ -74,7 +74,9 @@ class Client: self.obs.trigger( data["for"], data["type"], - data if self._raw else as_dataclass(data["type"], *data["message"]), + *data["message"] + if self._raw + else as_dataclass(data["type"], *data["message"]), ) self.logger.debug(data)