mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-03-23 02:19:22 +00:00
API: fix unused payload
This commit is contained in:
parent
f597d11852
commit
da42ff618a
|
@ -58,7 +58,11 @@ func (c *Client) ModifyWebhook(
|
|||
data ModifyWebhookData) (*discord.Webhook, error) {
|
||||
|
||||
var w *discord.Webhook
|
||||
return w, c.RequestJSON(&w, "PATCH", EndpointWebhooks+webhookID.String())
|
||||
return w, c.RequestJSON(
|
||||
&w, "PATCH",
|
||||
EndpointWebhooks+webhookID.String(),
|
||||
httputil.WithJSONBody(data),
|
||||
)
|
||||
}
|
||||
|
||||
func (c *Client) ModifyWebhookWithToken(
|
||||
|
@ -66,7 +70,11 @@ func (c *Client) ModifyWebhookWithToken(
|
|||
data ModifyWebhookData, token string) (*discord.Webhook, error) {
|
||||
|
||||
var w *discord.Webhook
|
||||
return w, c.RequestJSON(&w, "PATCH", EndpointWebhooks+webhookID.String()+"/"+token)
|
||||
return w, c.RequestJSON(
|
||||
&w, "PATCH",
|
||||
EndpointWebhooks+webhookID.String()+"/"+token,
|
||||
httputil.WithJSONBody(data),
|
||||
)
|
||||
}
|
||||
|
||||
func (c *Client) DeleteWebhook(webhookID discord.Snowflake) error {
|
||||
|
|
Loading…
Reference in a new issue