Skip to content

Commit

Permalink
fix(restapi): passing threadID in WebhookThreadExecute
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed Feb 5, 2022
1 parent efed253 commit 9321cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion restapi.go
Expand Up @@ -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.
Expand Down

0 comments on commit 9321cd3

Please sign in to comment.