func ModifyGuildRole(client httd.Patcher, guildID, roleID Snowflake, params *ModifyGuildRoleParams) (ret *Role, err error) {
	_, body, err := client.Patch(&httd.Request{
		Ratelimiter: ratelimitGuildRoles(guildID),
		Endpoint:    endpoint.GuildRole(guildID, roleID),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}

	err = unmarshal(body, &ret)
	if err != nil {
		return
	}

	// add guild id to role
	ret.guildID = guildID
	return
}
// ModifyGuildRole [PATCH]  Modify a guild role. Requires the 'MANAGE_ROLES' permission. Returns the updated
//                          role on success. Fires a Guild Role Update Gateway event.
// Endpoint                 /guilds/{guild.id}/roles/{role.id}
// Rate limiter             /guilds/{guild.id}/roles
// Discord documentation    https://discordapp.com/developers/docs/resources/guild#modify-guild-role
// Reviewed                 2018-08-18
// Comment                  -
ModifyGuildRole [PATCH]  Modify a guild role. Requires the 'MANAGE_ROLES' permission. Returns the updated
role on success. Fires a Guild Role Update Gateway event.
// ModifyGuildRole [ PATCH ] Modify a guild role . Requires the ' MANAGE_ROLES ' permission . Returns the updated // role on success . Fires a Guild Role Update Gateway event . // Endpoint / guilds / { guild . id } / roles / { role . id } // Rate limiter / guilds / { guild . id } / roles // Discord documentation https : // discordapp . com / developers / docs / resources / guild#modify - guild - role // Reviewed 2018 - 08 - 18 // Comment -
func ModifyGuildRole(client httd.Patcher, guildID, roleID Snowflake, params *ModifyGuildRoleParams) (ret *Role, err error) {
	_, body, err := client.Patch(&httd.Request{
		Ratelimiter: ratelimitGuildRoles(guildID),
		Endpoint:    endpoint.GuildRole(guildID, roleID),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}
	err = unmarshal(body, &ret)
	if err != nil {
		return
	}
	ret.guildID = guildID
	return
}
func ModifyGuildRole ( client httd . Patcher , guildID , roleID Snowflake , params * ModifyGuildRoleParams ) ( ret * Role , err error ) { _ , body , err := client . Patch ( & httd . Request { Ratelimiter : ratelimitGuildRoles ( guildID ) , Endpoint : endpoint . GuildRole ( guildID , roleID ) , JSONParams : params , ContentType : httd . ContentTypeJSON , } ) if err != nil { return } err = unmarshal ( body , & ret ) if err != nil { return } ret . guildID = guildID return }
ModifyGuildRole [PATCH]  Modify a guild role.
ModifyGuildRole [ PATCH ] Modify a guild role .
// add guild id to role