Skip to content

Commit

Permalink
Set required field channel_id when setting status
Browse files Browse the repository at this point in the history
  • Loading branch information
MattDavisRV committed Nov 8, 2024
1 parent bdae3ef commit 48a59e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assistant.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ func (api *Client) SetAssistantThreadsStatusContext(ctx context.Context, params
values.Add("thread_ts", params.ThreadTS)
}

values.Add("channel_id", params.ChannelID)

// Always send the status parameter, if empty, it will clear any existing status
values.Add("status", params.Status)

Expand Down

0 comments on commit 48a59e9

Please sign in to comment.