API: fix illogical order of parameters

This commit is contained in:
mavolin 2020-05-23 04:04:33 +02:00 committed by diamondburned
parent 6cc6d05f5f
commit b67b993095
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ func (c *Client) ModifyWebhook(
// require authentication, does not accept a channel_id parameter in the body,
// and does not return a user in the webhook object.
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
return w, c.RequestJSON(