async executeForDiscord(message) {
    // Inherited function with various possible implementations, some args may be unused.
    /* eslint no-unused-vars: ["error", { "args": "none" }] */
    const res = await this.context.dbManager.getDiscordRows(
      this.context.dbManager.imageTemplateTable,
      this.orgId,
      {});
    return this.langManager.getString(
      'command_listimagetemplates_success',
      res.map(r => r.id).join(', ')
    );
  }
/**
   * Executes the command instance. The main function of a command, it's essence.
   * All arguments scanning, validation and permissions check is considered done before entering this function.
   * So if any exception happens inside the function, it's considered a Bot's internal problem.
   * @param  {BaseMessage}         message the Discord message as the source of the command
   * @return {Promise<string>}             the result text to be replied as the response of the execution
   */
Executes the command instance. The main function of a command, it's essence.
All arguments scanning, validation and permissions check is considered done before entering this function.
So if any exception happens inside the function, it's considered a Bot's internal problem.
@param  {BaseMessage}         message the Discord message as the source of the command
@return {Promise}             the result text to be replied as the response of the execution
Executes the command instance . The main function of a command it ' s essence . All arguments scanning validation and permissions check is considered done before entering this function . So if any exception happens inside the function it ' s considered a Bot ' s internal problem . @param { BaseMessage } message the Discord message as the source of the command @return { Promise } the result text to be replied as the response of the execution
async executeForDiscord(message) {
    const res = await this.context.dbManager.getDiscordRows(
      this.context.dbManager.imageTemplateTable,
      this.orgId,
      {});
    return this.langManager.getString(
      'command_listimagetemplates_success',
      res.map(r => r.id).join(', ')
    );
  }
async executeForDiscord ( message ) { const res = await this . context . dbManager . getDiscordRows ( this . context . dbManager . imageTemplateTable , this . orgId , { } ) ; return this . langManager . getString ( 'command_listimagetemplates_success' , res . map ( r => r . id ) . join ( ', ' ) ) ; }
Executes the command instance.
Executes the command instance .
// Inherited function with various possible implementations, some args may be unused. /* eslint no-unused-vars: ["error", { "args": "none" }] */