1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-27 17:23:00 +00:00

API: code cleanup

This commit is contained in:
mavolin 2020-05-25 02:25:34 +02:00 committed by diamondburned
parent a07f343b39
commit 960ba486bd

View file

@ -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