func ModifyGuildRolePositions(client httd.Patcher, guildID Snowflake, params *ModifyGuildRolePositionsParams) (ret []*Role, err error) {
	details := &httd.Request{
		Ratelimiter: ratelimitGuildRoles(guildID),
		Endpoint:    endpoint.GuildRoles(guildID),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	}
	_, body, err := client.Patch(details)
	if err != nil {
		return
	}

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

	// add guild id to roles
	for _, role := range ret {
		role.guildID = guildID
	}
	return
}
// ModifyGuildRolePositions [PATCH] Modify the positions of a set of role objects for the guild. Requires the
//                                  'MANAGE_ROLES' permission. Returns a list of all of the guild's role objects
//                                  on success. Fires multiple Guild Role Update Gateway events.
// Endpoint                         /guilds/{guild.id}/roles
// Rate limiter                     /guilds/{guild.id}/roles
// Discord documentation            https://discordapp.com/developers/docs/resources/guild#modify-guild-role-positions
// Reviewed                         2018-08-18
// Comment                          -
ModifyGuildRolePositions [PATCH] Modify the positions of a set of role objects for the guild. Requires the
'MANAGE_ROLES' permission. Returns a list of all of the guild's role objects
on success. Fires multiple Guild Role Update Gateway events.
// ModifyGuildRolePositions [ PATCH ] Modify the positions of a set of role objects for the guild . Requires the // ' MANAGE_ROLES ' permission . Returns a list of all of the guild ' s role objects // on success . Fires multiple Guild Role Update Gateway events . // Endpoint / guilds / { guild . id } / roles // Rate limiter / guilds / { guild . id } / roles // Discord documentation https : // discordapp . com / developers / docs / resources / guild#modify - guild - role - positions // Reviewed 2018 - 08 - 18 // Comment -
func ModifyGuildRolePositions(client httd.Patcher, guildID Snowflake, params *ModifyGuildRolePositionsParams) (ret []*Role, err error) {
	details := &httd.Request{
		Ratelimiter: ratelimitGuildRoles(guildID),
		Endpoint:    endpoint.GuildRoles(guildID),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	}
	_, body, err := client.Patch(details)
	if err != nil {
		return
	}
	err = unmarshal(body, &ret)
	if err != nil {
		return
	}
	for _, role := range ret {
		role.guildID = guildID
	}
	return
}
func ModifyGuildRolePositions ( client httd . Patcher , guildID Snowflake , params * ModifyGuildRolePositionsParams ) ( ret [ ] * Role , err error ) { details := & httd . Request { Ratelimiter : ratelimitGuildRoles ( guildID ) , Endpoint : endpoint . GuildRoles ( guildID ) , JSONParams : params , ContentType : httd . ContentTypeJSON , } _ , body , err := client . Patch ( details ) if err != nil { return } err = unmarshal ( body , & ret ) if err != nil { return } for _ , role := range ret { role . guildID = guildID } return }
ModifyGuildRolePositions [PATCH] Modify the positions of a set of role objects for the guild.
ModifyGuildRolePositions [ PATCH ] Modify the positions of a set of role objects for the guild .
// add guild id to roles