Class Verifier

java.lang.Object
de.chojo.jdautil.parsing.Verifier

public final class Verifier extends Object
  • Method Details

    • isValidId

      public static boolean isValidId(String id)
      Returns true if the id is a valid id.
      Parameters:
      id - id to test.
      Returns:
      true if id is valid
    • equalSnowflake

      public static boolean equalSnowflake(ISnowflake a, ISnowflake b)
      Check if two object have the same Snowflake.
      Parameters:
      a - first object
      b - second object
      Returns:
      true if the snowflakes are equal.
    • isArgument

      public static boolean isArgument(String argument, String... args)
      Returns true if on of the arguments matches the argument. Not case sensitive.
      Parameters:
      argument - argument to match against.
      args - one or more arguments to check.
      Returns:
      true if one argument matches.
    • getIdRaw

      public static Optional<String> getIdRaw(String id)
      Extracts an id from discord's formatting.
      Parameters:
      id - the formatted id.
      Returns:
      the extracted id.