Skip to content

Commit 322aabe

Browse files
author
Sam Wierema
committed
NewVoiceMessage() should use a pointer to refer to Client, for concistency
1 parent 0ab1da8 commit 322aabe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
)
1919

2020
const (
21-
ClientVersion = "2.0.0"
21+
ClientVersion = "2.0.1"
2222
Endpoint = "https://rest.messagebird.com"
2323
)
2424

@@ -210,7 +210,7 @@ func (c *Client) VoiceMessage(id string) (*VoiceMessage, error) {
210210
}
211211

212212
// NewVoiceMessage creates a new voice message for one or more recipients.
213-
func (c Client) NewVoiceMessage(recipients []string, body string, params *VoiceMessageParams) (*VoiceMessage, error) {
213+
func (c *Client) NewVoiceMessage(recipients []string, body string, params *VoiceMessageParams) (*VoiceMessage, error) {
214214
urlParams := paramsForVoiceMessage(params)
215215
urlParams.Set("body", body)
216216
urlParams.Set("recipients", strings.Join(recipients, ","))

0 commit comments

Comments
 (0)