From 9321cd32910001f61f5272342f2ca56eb6874815 Mon Sep 17 00:00:00 2001 From: Fedor Lapshin Date: Sat, 5 Feb 2022 15:47:47 +0300 Subject: [PATCH] fix(restapi): passing threadID in WebhookThreadExecute --- restapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restapi.go b/restapi.go index 7439500f0..0c41989db 100644 --- a/restapi.go +++ b/restapi.go @@ -2220,7 +2220,7 @@ func (s *Session) WebhookExecute(webhookID, token string, wait bool, data *Webho // wait : Waits for server confirmation of message send and ensures that the return struct is populated (it is nil otherwise) // threadID : Sends a message to the specified thread within a webhook's channel. The thread will automatically be unarchived. func (s *Session) WebhookThreadExecute(webhookID, token string, wait bool, threadID string, data *WebhookParams) (st *Message, err error) { - return s.webhookExecute(webhookID, token, wait, "", data) + return s.webhookExecute(webhookID, token, wait, threadID, data) } // WebhookMessage gets a webhook message.