code: function parseEntityBotCommand(text, entity) {
      let result = RE_BOT_COMMAND.exec(text.substr(
          entity.offset,
          entity.length
      ));
  
      return {
          type: entity.type,
          name: result[1],
          mention: result[2],
      };
  }
docs: Methods
  @private