static async isChannels(argDef, argValue, command) {
    if (!(argValue instanceof DiscordChannelsArg)) {
      ArgValidationTree.generateValidationError(
        argDef,
        command,
        'wrong channels provided:',
        'arg_validation_wrong_channels'
      );
    }
    if (argDef.validationOptions.singleEntity && argValue.channels.length > 1) {
      ArgValidationTree.generateValidationError(argDef, command, 'channels array length > 1:',
        'arg_validation_non_single_channel_array');
    }
  }
/**
   * Validates a command's argument value against the isChannels condition.
   * If singleEntity option is true, then also checks the count of channels (should be 1).
   * @throws BotPublicError
   * @param  {CommandArgDef} argDef      the argument definition
   * @param  {Object}        argValue    the argument value
   * @param  {string}        commandName the command name
   */
Validates a command's argument value against the isChannels condition.
If singleEntity option is true, then also checks the count of channels (should be 1).
@throws BotPublicError
@param  {CommandArgDef} argDef      the argument definition
@param  {Object}        argValue    the argument value
@param  {string}        commandName the command name
Validates a command ' s argument value against the isChannels condition . If singleEntity option is true then also checks the count of channels ( should be 1 ) . @throws BotPublicError @param { CommandArgDef } argDef the argument definition @param { Object } argValue the argument value @param { string } commandName the command name
static async isChannels(argDef, argValue, command) {
    if (!(argValue instanceof DiscordChannelsArg)) {
      ArgValidationTree.generateValidationError(
        argDef,
        command,
        'wrong channels provided:',
        'arg_validation_wrong_channels'
      );
    }
    if (argDef.validationOptions.singleEntity && argValue.channels.length > 1) {
      ArgValidationTree.generateValidationError(argDef, command, 'channels array length > 1:',
        'arg_validation_non_single_channel_array');
    }
  }
static async isChannels ( argDef , argValue , command ) { if ( ! ( argValue instanceof DiscordChannelsArg ) ) { ArgValidationTree . generateValidationError ( argDef , command , 'wrong channels provided:' , 'arg_validation_wrong_channels' ) ; } if ( argDef . validationOptions . singleEntity && argValue . channels . length > 1 ) { ArgValidationTree . generateValidationError ( argDef , command , 'channels array length > 1:' , 'arg_validation_non_single_channel_array' ) ; } }
Validates a command's argument value against the isChannels condition.
Validates a command ' s argument value against the isChannels condition .