diff --git a/pkg/discordbotsgg/discordbotsgg.go b/pkg/discordbotsgg/discordbotsgg.go index 0da7af1..33fb28d 100644 --- a/pkg/discordbotsgg/discordbotsgg.go +++ b/pkg/discordbotsgg/discordbotsgg.go @@ -137,6 +137,8 @@ func (client *Client) doPostRequest(ctx context.Context, queryURL string, reques } req.Header.Set("Authorization", client.APIToken) + req.Header.Set("Content-Type", "application/json") + req.ContentLength = int64(len(objectBytes)) return client.doRequest(req, responseObject) }