async validateFromDiscord(message) {
    await super.validateFromDiscord(message);

    const res = await this.context.dbManager.getDiscordRows(this.context.dbManager.imageTemplateTable,
      this.orgId, { id: this.templateName });

    if (!res[0]) {
      throw new BotPublicError(
        this.langManager.getString(
          'command_makeimage_error_undefined_template',
          this.templateName
        )
      );
    }

    this.parsedJsonConfig = res[0].config;
  }
/**
   * Validates each of the arguments according to validation types set in their definition.
   * Throws BotPublicError if any of the validations was violated.
   * @see CommandArgDef
   * @throws {BotPublicError}
   * @param  {BaseMessage}  message the command's message
   * @return {Promise}              nothing
   */
Validates each of the arguments according to validation types set in their definition.
Throws BotPublicError if any of the validations was violated.
@see CommandArgDef
@throws {BotPublicError}
@param  {BaseMessage}  message the command's message
@return {Promise}              nothing
Validates each of the arguments according to validation types set in their definition . Throws BotPublicError if any of the validations was violated . @see CommandArgDef @throws { BotPublicError } @param { BaseMessage } message the command ' s message @return { Promise } nothing
async validateFromDiscord(message) {
    await super.validateFromDiscord(message);
    const res = await this.context.dbManager.getDiscordRows(this.context.dbManager.imageTemplateTable,
      this.orgId, { id: this.templateName });
    if (!res[0]) {
      throw new BotPublicError(
        this.langManager.getString(
          'command_makeimage_error_undefined_template',
          this.templateName
        )
      );
    }
    this.parsedJsonConfig = res[0].config;
  }
async validateFromDiscord ( message ) { await super . validateFromDiscord ( message ) ; const res = await this . context . dbManager . getDiscordRows ( this . context . dbManager . imageTemplateTable , this . orgId , { id : this . templateName } ) ; if ( ! res [ 0 ] ) { throw new BotPublicError ( this . langManager . getString ( 'command_makeimage_error_undefined_template' , this . templateName ) ) ; } this . parsedJsonConfig = res [ 0 ] . config ; }
Validates each of the arguments according to validation types set in their definition.
Validates each of the arguments according to validation types set in their definition .