public void update(){
  checkPermission(Permission.MANAGE_ROLES);
  checkPosition();
  JSONObject frame=getFrame();
  if (name != null)   frame.put("name",name);
  if (color >= 0)   frame.put("color",color);
  if (grouped != null)   frame.put("hoist",grouped.booleanValue());
  if (mentionable != null)   frame.put("mentionable",mentionable.booleanValue());
  update(frame);
}

public void update ( ) { checkPermission ( Permission . MANAGE_ROLES ) ; checkPosition ( ) ; JSONObject frame = getFrame ( ) ; if ( name != null ) frame . put ( "name" , name ) ; if ( color >= 0 ) frame . put ( "color" , color ) ; if ( grouped != null ) frame . put ( "hoist" , grouped . booleanValue ( ) ) ; if ( mentionable != null ) frame . put ( "mentionable" , mentionable . booleanValue ( ) ) ; update ( frame ) ; }
this method will apply all accumulated changes received by setters
