Class GlobalCommand


  • public class GlobalCommand
    extends Command
    A Command that will be registered on all the servers where the bot on and also can be available in dms
    • Constructor Detail

      • GlobalCommand

        public GlobalCommand​(java.lang.String name,
                             java.lang.String description)
        Default constructor
        Parameters:
        name - the name of the command Its length must between 1 and 32 Can contain only: - word characters - numbers - '-' characters
        description - the description of the command Its length must between 1 and 100
    • Method Detail

      • disableInDMs

        public void disableInDMs()
        Disables the command in DMs
      • enableInDMs

        public void enableInDMs()
        Enables the command in DMs
      • isEnabledInDMs

        public boolean isEnabledInDMs()
        Checks if the command is enabled in DMs
        Returns:
        true if the command is enabled in DMs, false otherwise