static async isOnOff(argDef, argValue, command) {
    if (typeof argValue !== 'boolean') {
      const acceptableStrings = [
        command.langManager.getString('arg_boolean_off'),
        command.langManager.getString('arg_boolean_on'),
        command.langManager.getString('arg_boolean_false'),
        command.langManager.getString('arg_boolean_true')
      ];
      ArgValidationTree.generateValidationError(argDef, command, 'wrong on/off arg:', 'arg_validation_wrong_on_off', [
        acceptableStrings.join(', ')
      ]);
    }
  }
/**
   * Validates a command's argument value against the isOnOff condition.
   * @throws BotPublicError
   * @param  {CommandArgDef} argDef      the argument definition
   * @param  {Object}        argValue    the argument value
   * @param  {Command}       command     the command having the argument
   */
Validates a command's argument value against the isOnOff condition.
@throws BotPublicError
@param  {CommandArgDef} argDef      the argument definition
@param  {Object}        argValue    the argument value
@param  {Command}       command     the command having the argument
Validates a command ' s argument value against the isOnOff condition . @throws BotPublicError @param { CommandArgDef } argDef the argument definition @param { Object } argValue the argument value @param { Command } command the command having the argument
static async isOnOff(argDef, argValue, command) {
    if (typeof argValue !== 'boolean') {
      const acceptableStrings = [
        command.langManager.getString('arg_boolean_off'),
        command.langManager.getString('arg_boolean_on'),
        command.langManager.getString('arg_boolean_false'),
        command.langManager.getString('arg_boolean_true')
      ];
      ArgValidationTree.generateValidationError(argDef, command, 'wrong on/off arg:', 'arg_validation_wrong_on_off', [
        acceptableStrings.join(', ')
      ]);
    }
  }
static async isOnOff ( argDef , argValue , command ) { if ( typeof argValue !== 'boolean' ) { const acceptableStrings = [ command . langManager . getString ( 'arg_boolean_off' ) , command . langManager . getString ( 'arg_boolean_on' ) , command . langManager . getString ( 'arg_boolean_false' ) , command . langManager . getString ( 'arg_boolean_true' ) ] ; ArgValidationTree . generateValidationError ( argDef , command , 'wrong on/off arg:' , 'arg_validation_wrong_on_off' , [ acceptableStrings . join ( ', ' ) ] ) ; } }
Validates a command's argument value against the isOnOff condition.
Validates a command ' s argument value against the isOnOff condition .