Class CommandData


  • public final class CommandData
    extends java.lang.Object
    Represents command data. Stores data about a specific command.
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandData​(@Nullable java.lang.String usage, @Nullable java.lang.String description, @NotNull java.lang.String[] names, boolean guildOnly)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable java.lang.String getDescription()
      Returns the description of the Command this command data is holding, if present.
      @NotNull java.lang.String[] getNames()
      Returns the name(s) of the Command this command data is holding.
      @Nullable java.lang.String getUsage()
      Returns the usage of the Command this command data is holding, if present.
      boolean isGuildOnly()
      Returns whenever the Command this command data is holding is guild only.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommandData

        public CommandData​(@Nullable
                           @Nullable java.lang.String usage,
                           @Nullable
                           @Nullable java.lang.String description,
                           @NotNull
                           @NotNull java.lang.String[] names,
                           boolean guildOnly)
    • Method Detail

      • getUsage

        @Nullable
        public @Nullable java.lang.String getUsage()
        Returns the usage of the Command this command data is holding, if present.
        Returns:
        usage
      • getDescription

        @Nullable
        public @Nullable java.lang.String getDescription()
        Returns the description of the Command this command data is holding, if present.
        Returns:
        description
      • getNames

        @NotNull
        public @NotNull java.lang.String[] getNames()
        Returns the name(s) of the Command this command data is holding.
        Returns:
        name(s)
      • isGuildOnly

        public boolean isGuildOnly()
        Returns whenever the Command this command data is holding is guild only.
        Returns:
        true if guild only, false otherwise