java.lang.Object
java.lang.Enum<CommandType>
io.github.yusufsdiscordbot.yusufsdiscordcore.bot.handlers.CommandType
All Implemented Interfaces:
Serializable, Comparable<CommandType>, Constable

public enum CommandType extends Enum<CommandType>
  • Enum Constant Details

    • MODERATION

      public static final CommandType MODERATION
      This command is a moderation command.
    • FUN

      public static final CommandType FUN
      This command is a fun command.
    • UTILITY

      public static final CommandType UTILITY
      This command is a utility command.
    • MUSIC

      public static final CommandType MUSIC
      This command is a music command.
    • OWNER_ONLY

      public static final CommandType OWNER_ONLY
      This command is owner only.
    • INFO

      public static final CommandType INFO
      This command is used to provide info.
    • SUPPORT

      public static final CommandType SUPPORT
      This command is used to provide support
    • SETUP

      public static final CommandType SETUP
      This command is used to set up something
    • DEVELOPMENT

      public static final CommandType DEVELOPMENT
      This command is under development.
    • EXAMPLE

      public static final CommandType EXAMPLE
      This command is an example command.
    • UNKNOWN

      public static final CommandType UNKNOWN
      No yet determined.
  • Method Details

    • values

      public static CommandType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CommandType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      The command type as a String
      Returns:
      the command type as a String.
    • getCommandType

      @NotNull public static @NotNull CommandType getCommandType(String name)
      The command type as a String
      Parameters:
      name - the Name of the command type
      Returns:
      the CommandType of the given name in lowercase.