mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-02-11 05:52:58 +00:00
API: fix illogical order of parameters
This commit is contained in:
parent
6cc6d05f5f
commit
b67b993095
|
@ -91,7 +91,7 @@ func (c *Client) ModifyWebhook(
|
||||||
// require authentication, does not accept a channel_id parameter in the body,
|
// require authentication, does not accept a channel_id parameter in the body,
|
||||||
// and does not return a user in the webhook object.
|
// and does not return a user in the webhook object.
|
||||||
func (c *Client) ModifyWebhookWithToken(
|
func (c *Client) ModifyWebhookWithToken(
|
||||||
webhookID discord.Snowflake, data ModifyWebhookData, token string) (*discord.Webhook, error) {
|
webhookID discord.Snowflake, token string, data ModifyWebhookData) (*discord.Webhook, error) {
|
||||||
|
|
||||||
var w *discord.Webhook
|
var w *discord.Webhook
|
||||||
return w, c.RequestJSON(
|
return w, c.RequestJSON(
|
||||||
|
|
Loading…
Reference in a new issue