From 2a16210c4a5029ffe0ca752d386d716b258dfe8f Mon Sep 17 00:00:00 2001 From: Nathan Nowack Date: Tue, 9 Jan 2024 14:15:48 -0800 Subject: [PATCH] make slackpayload fields optional --- src/marvin/utilities/slack.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/marvin/utilities/slack.py b/src/marvin/utilities/slack.py index 65144c79e..b08f07388 100644 --- a/src/marvin/utilities/slack.py +++ b/src/marvin/utilities/slack.py @@ -29,11 +29,11 @@ class EventBlock(BaseModel): class SlackEvent(BaseModel): client_msg_id: Optional[str] = None type: str - text: str - user: str - ts: str - team: str - channel: str + text: Optional[str] = None + user: Optional[str] = None + ts: Optional[str] = None + team: Optional[str] = None + channel: Optional[str] = None event_ts: str thread_ts: Optional[str] = None parent_user_id: Optional[str] = None