forked from lug/matterbridge
Update dependencies (#1813)
This commit is contained in:
3
vendor/github.com/bwmarrin/discordgo/util.go
generated
vendored
3
vendor/github.com/bwmarrin/discordgo/util.go
generated
vendored
@@ -2,7 +2,6 @@ package discordgo
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"mime/multipart"
|
||||
@@ -30,7 +29,7 @@ func MultipartBodyWithJSON(data interface{}, files []*File) (requestContentType
|
||||
body := &bytes.Buffer{}
|
||||
bodywriter := multipart.NewWriter(body)
|
||||
|
||||
payload, err := json.Marshal(data)
|
||||
payload, err := Marshal(data)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user