Class AnnotatedCommandProvider

java.lang.Object
com.github.alex1304.ultimategdbot.api.command.CommandProvider
com.github.alex1304.ultimategdbot.api.command.annotated.AnnotatedCommandProvider

public class AnnotatedCommandProvider
extends CommandProvider
  • Constructor Details

  • Method Details

    • addParamConverter

      public void addParamConverter​(ParamConverter<?> converter)
      Adds a new param converter to this annotated command provider.
      Parameters:
      converter - the converter to add
    • addAnnotated

      public void addAnnotated​(Object annotated)
      Builds and adds a new command based on the given annotated object.
      Parameters:
      annotated - the annotated object to add
      Throws:
      InvalidAnnotatedObjectException - if the annotated object is malformed.