From 960ba486bdacf00b139b83d96ad54b55f6b6b104 Mon Sep 17 00:00:00 2001 From: mavolin <48887425+mavolin@users.noreply.github.com> Date: Mon, 25 May 2020 02:25:34 +0200 Subject: [PATCH] API: code cleanup --- api/channel.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/channel.go b/api/channel.go index 5a3e1f7..c41a640 100644 --- a/api/channel.go +++ b/api/channel.go @@ -183,9 +183,10 @@ type EditChannelPermissionData struct { func (c *Client) EditChannelPermission( channelID, overwriteID discord.Snowflake, data EditChannelPermissionData) error { - url := EndpointChannels + channelID.String() + "/permissions/" + overwriteID.String() - - return c.FastRequest("PUT", url, httputil.WithJSONBody(data)) + return c.FastRequest( + "PUT", EndpointChannels+channelID.String()+"/permissions/"+overwriteID.String(), + httputil.WithJSONBody(data), + ) } // DeleteChannelPermission deletes a channel permission overwrite for a user or