Class RouteUtils

java.lang.Object
discord4j.rest.util.RouteUtils

public class RouteUtils extends Object
  • Method Details

    • handleStringConversion

      public static String handleStringConversion(Object obj)
      "Overrides" Object#toString behaviour for some objects, when we need to format them in a special form For instance, this function on its creation handle long printing to make them unsigned only
      Parameters:
      obj - Object to handle
      Returns:
      If handled, custom string value or else the object's toString return value
    • expand

      public static String expand(String template, Object... variables)
    • createVariableMap

      @Experimental public static Map<String,String> createVariableMap(String template, Object... variables)
    • expandQuery

      public static String expandQuery(String uri, @Nullable Multimap<String,Object> values)
    • getMajorParam

      @Nullable public static String getMajorParam(String template, String complete)