Updated Auth Token usage

PostBotMessage no longer requires/uses an auth token
This commit is contained in:
densestvoid
2020-08-23 19:28:50 -04:00
parent bd76de2ffe
commit 010fd832ac
13 changed files with 48 additions and 43 deletions

View File

@ -83,7 +83,7 @@ func (c *Client) IndexDirectMessages(otherUserID ID, req *IndexDirectMessagesQue
}
var resp IndexDirectMessagesResponse
err = c.do(httpReq, &resp)
err = c.doWithAuthToken(httpReq, &resp)
if err != nil {
return IndexDirectMessagesResponse{}, err
}
@ -136,7 +136,7 @@ func (c *Client) CreateDirectMessage(m *Message) (*Message, error) {
var resp struct {
*Message `json:"message"`
}
err = c.do(httpReq, &resp)
err = c.doWithAuthToken(httpReq, &resp)
if err != nil {
return nil, err
}