return raw message if raw.

patch bump
This commit is contained in:
onyx-and-iris 2023-06-28 04:29:02 +01:00
parent 48f7be2962
commit 591391aeb7
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "streamlabsio" name = "streamlabsio"
version = "1.0.0" version = "1.0.1"
description = "Get real time Twitch/Youtube events through Streamlabs SocketIO API" description = "Get real time Twitch/Youtube events through Streamlabs SocketIO API"
authors = ["onyx-and-iris <code@onyxandiris.online>"] authors = ["onyx-and-iris <code@onyxandiris.online>"]
license = "MIT" license = "MIT"

View File

@ -74,7 +74,9 @@ class Client:
self.obs.trigger( self.obs.trigger(
data["for"], data["for"],
data["type"], 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) self.logger.debug(data)