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:
parent
a07f343b39
commit
960ba486bd
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue